/**
 * StylingCV Brand Page Styles
 * Complete styling for the brand identity page
 *
 * @version 1.0.0
 * @package StylingCV
 */

/* ============================================
   FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --brand-primary: #0ea5e9;
    --brand-accent: #10b981;
    --brand-gradient: linear-gradient(135deg, #0ea5e9, #10b981);

    --brand-bg: #0b0d13;
    --brand-bg-secondary: #111318;
    --brand-card: #16181f;
    --brand-card-hover: #1c1f27;
    --brand-border: #2a2d36;

    --brand-text: #f8fafc;
    --brand-text-muted: #94a3b8;
    --brand-text-subtle: #64748b;

    /* Typography */
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Inter", -apple-system, sans-serif;
    --font-alt: "Space Grotesk", sans-serif;

    /* Spacing */
    --section-padding: 6rem 0;
    --container-max: 1200px;
    --container-padding: 0 1.5rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.2);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
.brand-page {
    background: var(--brand-bg);
    color: var(--brand-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.brand-main {
    min-height: 100vh;
}

.brand-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ============================================
   HERO SECTION
   ============================================ */
.brand-hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
}

.brand-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 9999px;
    color: var(--brand-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.brand-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-hero-description {
    font-size: 1.25rem;
    color: var(--brand-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.brand-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.brand-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--brand-primary);
    top: -200px;
    left: -200px;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--brand-accent);
    bottom: -150px;
    right: -150px;
}

/* ============================================
   BUTTONS
   ============================================ */
.brand-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.brand-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.4);
}

.brand-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.brand-btn-secondary:hover {
    background: var(--brand-card);
    border-color: var(--brand-text-subtle);
}

.brand-btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.brand-section {
    padding: var(--section-padding);
    border-top: 1px solid var(--brand-border);
}

.brand-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.brand-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brand-text);
}

.brand-section-description {
    font-size: 1.125rem;
    color: var(--brand-text-muted);
    line-height: 1.7;
}

.brand-subsection-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--brand-text);
}

.brand-subsection-description {
    font-size: 1rem;
    color: var(--brand-text-muted);
    margin-bottom: 2rem;
}

/* ============================================
   LOGO SECTION
   ============================================ */
.brand-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.brand-logo-card {
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.brand-logo-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow);
}

.brand-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    min-height: 200px;
}

.brand-logo-dark .brand-logo-preview {
    background: #0f172a;
}

.brand-logo-light .brand-logo-preview {
    background: #f8fafc;
}

.brand-logo-svg {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.brand-logo-info {
    padding: 1.5rem;
    border-top: 1px solid var(--brand-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-logo-label {
    font-weight: 500;
    color: var(--brand-text);
}

.brand-logo-actions {
    display: flex;
    gap: 0.5rem;
}

.brand-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--brand-bg);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.brand-download-btn:hover {
    background: var(--brand-card-hover);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Clear Space Demo */
.brand-clearspace {
    margin-top: 4rem;
}

.brand-clearspace-demo {
    display: flex;
    justify-content: center;
}

.clearspace-box {
    position: relative;
    padding: 3rem;
    background: #0f172a;
    border: 2px dashed var(--brand-border);
    border-radius: var(--radius-lg);
}

.clearspace-marker {
    position: absolute;
    background: rgba(14, 165, 233, 0.3);
}

.clearspace-marker.top,
.clearspace-marker.bottom {
    left: 3rem;
    right: 3rem;
    height: 1rem;
}

.clearspace-marker.top {
    top: 1rem;
}

.clearspace-marker.bottom {
    bottom: 1rem;
}

.clearspace-marker.left,
.clearspace-marker.right {
    top: 3rem;
    bottom: 3rem;
    width: 1rem;
}

.clearspace-marker.left {
    left: 1rem;
}

.clearspace-marker.right {
    right: 1rem;
}

.brand-logo-svg-small {
    width: 200px;
    height: auto;
}

/* ============================================
   SYMBOL SECTION
   ============================================ */
.brand-symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.brand-symbol-card {
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.brand-symbol-card:hover {
    border-color: var(--brand-primary);
}

.brand-symbol-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    min-height: 180px;
}

.brand-symbol-gradient {
    background: #0f172a;
}

.brand-symbol-dark {
    background: #0f172a;
}

.brand-symbol-light {
    background: #f8fafc;
}

.brand-symbol-svg {
    width: 80px;
    height: 80px;
}

.brand-symbol-info {
    padding: 1.5rem;
    border-top: 1px solid var(--brand-border);
}

.brand-symbol-label {
    display: block;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 0.25rem;
}

.brand-symbol-usage {
    display: block;
    font-size: 0.875rem;
    color: var(--brand-text-muted);
    margin-bottom: 1rem;
}

.brand-symbol-actions {
    display: flex;
    gap: 0.5rem;
}

/* Favicon Section */
.brand-favicon-section {
    margin-top: 3rem;
}

.brand-favicon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.brand-favicon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.favicon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.favicon-preview svg {
    width: 100%;
    height: 100%;
}

.brand-favicon-item span {
    font-size: 0.875rem;
    color: var(--brand-text-muted);
}

/* ============================================
   COLORS SECTION
   ============================================ */
.brand-color-group {
    margin-bottom: 4rem;
}

.brand-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.brand-colors-neutrals {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.brand-color-card {
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.brand-color-card:hover {
    border-color: var(--brand-text-subtle);
}

.brand-color-swatch {
    height: 120px;
}

.brand-color-info {
    padding: 1.25rem;
}

.brand-color-name {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 0.25rem;
}

.brand-color-description {
    display: block;
    font-size: 0.875rem;
    color: var(--brand-text-muted);
    margin-bottom: 1rem;
}

.brand-color-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brand-color-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--brand-bg);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.brand-color-value:hover {
    border-color: var(--brand-primary);
}

.brand-color-value.copied {
    border-color: var(--brand-accent);
    background: rgba(16, 185, 129, 0.1);
}

.color-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-text-muted);
    min-width: 32px;
}

.color-code {
    font-family: monospace;
    font-size: 0.8125rem;
    color: var(--brand-text);
    flex: 1;
}

/* Compact Color Cards */
.brand-color-compact {
    display: flex;
    align-items: center;
    padding: 0;
}

.brand-color-swatch-small {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    flex-shrink: 0;
}

.brand-color-info-compact {
    padding: 0.75rem 1rem;
    flex: 1;
}

.brand-color-info-compact .brand-color-name {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.brand-color-value-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--brand-text-muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.brand-color-value-compact:hover {
    color: var(--brand-primary);
}

/* Theme Examples */
.brand-theme-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.brand-theme-card {
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.brand-theme-label {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--brand-text);
    border-bottom: 1px solid var(--brand-border);
}

.brand-theme-preview {
    padding: 2rem;
}

.brand-theme-dark .brand-theme-preview {
    background: #0f172a;
}

.brand-theme-light .brand-theme-preview {
    background: #ffffff;
}

.theme-preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.theme-preview-text {
    font-weight: 600;
    font-size: 1.125rem;
}

.brand-theme-dark .theme-preview-text {
    color: #ffffff;
}

.brand-theme-light .theme-preview-text {
    color: #0f172a;
}

.theme-preview-button {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    background: var(--brand-gradient);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ============================================
   TYPOGRAPHY SECTION
   ============================================ */
.brand-typography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.brand-font-card {
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.brand-font-card:hover {
    border-color: var(--brand-text-subtle);
}

.brand-font-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--brand-bg);
    border-bottom: 1px solid var(--brand-border);
}

.brand-font-sample {
    font-size: 5rem;
    font-weight: 400;
    color: var(--brand-text);
}

.font-playfair {
    font-family: "Playfair Display", serif;
}

.font-inter {
    font-family: "Inter", sans-serif;
}

.font-space {
    font-family: "Space Grotesk", sans-serif;
}

.brand-font-info {
    padding: 1.5rem;
}

.brand-font-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0 0 0.25rem 0;
}

.brand-font-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--brand-primary);
    background: rgba(14, 165, 233, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.brand-font-description {
    font-size: 0.9375rem;
    color: var(--brand-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.brand-font-weights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.font-weight-sample {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    background: var(--brand-bg);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    color: var(--brand-text-muted);
}

.brand-font-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition);
}

.brand-font-link:hover {
    text-decoration: underline;
}

/* Type Scale */
.brand-type-scale {
    margin-top: 4rem;
}

.brand-scale-examples {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-scale-item {
    display: grid;
    grid-template-columns: 140px 120px 1fr;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .brand-scale-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.scale-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-text-muted);
}

.scale-size {
    font-family: monospace;
    font-size: 0.8125rem;
    color: var(--brand-text-subtle);
}

.scale-sample {
    margin: 0;
    color: var(--brand-text);
}

.scale-h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.scale-h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.scale-h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.scale-h4 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.scale-body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

.scale-small {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--brand-text-muted);
}

/* ============================================
   GUIDELINES SECTION
   ============================================ */
.brand-guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.brand-guideline-card {
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.guideline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guideline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.guideline-icon.do {
    background: rgba(16, 185, 129, 0.2);
    color: var(--brand-accent);
}

.guideline-icon.dont {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.guideline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0;
}

.guideline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guideline-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--brand-text-muted);
    line-height: 1.5;
}

.brand-guideline-do .guideline-list li svg {
    color: var(--brand-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.brand-guideline-dont .guideline-list li svg {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Misuse Section */
.brand-misuse-section {
    margin-top: 3rem;
}

.brand-misuse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.brand-misuse-item {
    text-align: center;
}

.misuse-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
}

.misuse-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
}

.misuse-logo.stretched {
    transform: scaleX(1.5);
}

.misuse-logo.rotated {
    transform: rotate(15deg);
}

.misuse-busy-bg {
    background: repeating-linear-gradient(
        45deg,
        #1e293b,
        #1e293b 10px,
        #334155 10px,
        #334155 20px
    );
}

.misuse-x {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    color: white;
}

.misuse-label {
    font-size: 0.875rem;
    color: var(--brand-text-muted);
}

/* Download CTA */
.brand-download-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    margin-top: 4rem;
}

.download-cta-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0 0 0.5rem 0;
}

.download-cta-content p {
    font-size: 1rem;
    color: var(--brand-text-muted);
    margin: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .brand-hero {
        padding: 8rem 0 4rem;
    }

    .brand-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .brand-hero {
        padding: 6rem 0 3rem;
    }

    .brand-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .brand-btn-primary,
    .brand-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .brand-logo-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-download-cta {
        flex-direction: column;
        text-align: center;
    }

    .download-cta-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand-container {
        padding: 0 1rem;
    }

    .brand-section-header {
        margin-bottom: 2.5rem;
    }

    .brand-logo-preview,
    .brand-symbol-preview,
    .brand-font-preview {
        padding: 2rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
