/* CSS Styles for TheGuildify V1 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --color-primary-ink: #0B193C;
    --color-primary-light: #1A294C;
    --color-blue-600: #0066FF;
    --color-blue-700: #0052CC;
    --color-blue-50: #F0F5FF;
    --color-emerald-600: #059669;
    --color-emerald-700: #047857;
    --color-emerald-50: #ECFDF5;
    --color-slate-50: #F8FAFC;
    --color-slate-100: #F1F5F9;
    --color-slate-200: #E2E8F0;
    --color-slate-300: #CBD5E1;
    --color-slate-400: #94A3B8;
    --color-slate-500: #64748B;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-primary-light);
    background-color: var(--color-slate-50);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-ink);
    letter-spacing: -0.01em;
}

/* Header & Navigation */
header {
    background-color: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-slate-200);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo-link {
    margin-right: auto;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 42px;
    width: 42px;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.logo-link:hover .nav-logo-img {
    transform: scale(1.05);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-dark {
    color: #0B193C;
}

.brand-blue {
    color: #0066FF;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--color-slate-500);
    text-transform: uppercase;
    margin-top: 1px;
}

.brand-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    background-color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 14px;
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    max-width: 90%;
    transition: var(--transition-normal);
}

.brand-hero-badge:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.3);
}

.hero-badge-img {
    height: 52px;
    width: 52px;
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-badge-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.hero-badge-slogan {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0066FF;
    letter-spacing: 0.01em;
}

.hero-badge-sub {
    font-size: 0.75rem;
    color: var(--color-slate-500);
    font-weight: 500;
}

.footer-logo-img {
    height: 48px;
    width: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.modal-logo-img {
    height: 30px;
    width: 30px;
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-blue-600);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-blue-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary-ink);
    border: 1px solid var(--color-slate-200);
}

.btn-secondary:hover {
    background-color: var(--color-slate-100);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-blue-600);
    border: 1.5px solid var(--color-blue-600);
}

.btn-outline:hover {
    background-color: var(--color-blue-50);
}

.btn-emerald {
    background-color: var(--color-emerald-600);
    color: white;
}

.btn-emerald:hover {
    background-color: var(--color-emerald-700);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero-gradient {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(5,150,105,0.04) 50%, rgba(248,250,252,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-blue-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--color-blue-600) 0%, var(--color-emerald-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    color: var(--color-slate-500);
    line-height: 1.6;
}

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

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-slate-500);
}

/* Split Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.split-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.split-content p {
    font-size: 1.1rem;
    color: var(--color-slate-500);
    margin-bottom: 2rem;
}

.segment-tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.trainer-color { color: var(--color-blue-600); }
.professional-color { color: var(--color-emerald-600); }
.student-color { color: var(--color-primary-ink); }

.benefit-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.benefit-list svg {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.trainer-color-svg { color: var(--color-blue-600); }
.professional-color-svg { color: var(--color-emerald-600); }
.student-color-svg { color: var(--color-primary-ink); }

/* Vector Mockups */
.graphic-mockup {
    background-color: white;
    border: 1px solid var(--color-slate-200);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

/* Audience Cards / Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    border: 1px solid var(--color-slate-200);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-card:nth-child(1) .benefit-icon { background-color: var(--color-blue-50); color: var(--color-blue-600); }
.benefit-card:nth-child(2) .benefit-icon { background-color: var(--color-emerald-50); color: var(--color-emerald-600); }
.benefit-card:nth-child(3) .benefit-icon { background-color: var(--color-slate-100); color: var(--color-primary-ink); }

.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.benefit-card p { color: var(--color-slate-500); font-size: 0.95rem; }

/* Selection Tags / Grid for Areas of Interest */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.interest-card {
    background-color: white;
    border: 1px solid var(--color-slate-200);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.interest-card:hover {
    border-color: var(--color-blue-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.interest-card svg {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
    color: var(--color-slate-400);
    transition: var(--transition-fast);
}

.interest-card:hover svg {
    color: var(--color-blue-600);
}

.interest-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Areas of Interest Multi-select Options */
.checkbox-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-slate-50);
    border: 1px solid var(--color-slate-200);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
    font-weight: 500;
}

.checkbox-option:hover {
    background-color: var(--color-slate-100);
}

.checkbox-option input {
    width: auto !important;
    margin-bottom: 0 !important;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition-normal);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { font-size: 1.25rem; font-weight: 700; }
.modal-close { background: transparent; border: none; cursor: pointer; color: var(--color-slate-400); display: flex; align-items: center; }
.modal-close:hover { color: var(--color-primary-ink); }
.modal-body { padding: 2rem; overflow-y: auto; }

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-ink);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 8px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Radio Group Row */
.radio-group-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.radio-option input {
    width: auto !important;
}

/* Admin Dashboard Metrics page */
.admin-container {
    max-width: 1200px;
    margin: 8rem auto 4rem auto;
    padding: 0 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background-color: white;
    border: 1px solid var(--color-slate-200);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.metric-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-500);
    margin-bottom: 0.5rem;
}

.metric-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-ink);
}

.metric-footer {
    font-size: 0.8rem;
    color: var(--color-emerald-600);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Chart visualization layouts */
.admin-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-card {
    background-color: white;
    border: 1px solid var(--color-slate-200);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.chart-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Custom CSS Visual Bar Charts */
.bar-chart-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    width: 150px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-track {
    flex-grow: 1;
    background-color: var(--color-slate-100);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    background-color: var(--color-blue-600);
    height: 100%;
    border-radius: 6px;
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.professional-fill {
    background-color: var(--color-emerald-600);
}

.student-fill {
    background-color: var(--color-primary-ink);
}

.bar-value {
    width: 40px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-ink);
}

/* Footer */
footer {
    background-color: var(--color-slate-50);
    border-top: 1px solid var(--color-slate-200);
    padding: 4rem 2rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand { max-width: 320px; }
.footer-desc { color: var(--color-slate-500); font-size: 0.95rem; margin-top: 1rem; }
.footer-links { display: flex; gap: 4rem; }
.footer-column h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--color-slate-400); margin-bottom: 1.25rem; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.75rem; }
.footer-column ul li a { text-decoration: none; color: var(--color-slate-500); font-size: 0.9rem; transition: var(--transition-fast); }
.footer-column ul li a:hover { color: var(--color-blue-600); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--color-slate-200); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: var(--color-slate-400); font-size: 0.8rem; }

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .benefits-grid, .interests-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .benefits-grid, .interests-grid { grid-template-columns: 1fr; }
    .split-layout, .split-layout.reverse { grid-template-columns: 1fr; gap: 3rem; }
    .hero h1 { font-size: 2.75rem; }
    .footer-container { flex-direction: column; gap: 3rem; }
    .checkbox-group-grid { grid-template-columns: 1fr; }
    .admin-metrics-grid { grid-template-columns: 1fr; }
}
