/*
 * COMPONENTS.CSS - Cards, Grids, Buttons & UI Elements
 * Kick-Off Presentation Framework
 */

/* ============================
   GRID LAYOUTS
   ============================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 1400px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    width: 100%;
    max-width: 1400px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1600px;
}

@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* ============================
   CARDS - BASE
   ============================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================
   CARDS - HIGHLIGHTED
   ============================ */
.card.card-highlighted {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.card.card-solid {
    background: var(--primary);
    color: white;
}

.card.card-solid p {
    color: rgba(255, 255, 255, 0.9);
}

.card.card-solid:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px var(--primary-glow);
}

/* ============================
   CARDS - VARIANTS
   ============================ */

/* --- Team Card --- */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s var(--ease-out);
}

.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.team-role {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-desc {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.5;
}

/* --- Ceremony Card --- */
.ceremony-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    transition: 0.3s var(--ease-out);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ceremony-card:hover {
    border-color: var(--info);
    transform: translateX(10px);
}

.ceremony-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--info);
    border: 1px solid rgba(52, 152, 219, 0.2);
    flex-shrink: 0;
}

.ceremony-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.ceremony-freq {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* --- KPI Card --- */
.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: 0.3s var(--ease-out);
}

.kpi-card:hover {
    border-color: var(--success);
    transform: translateY(-10px);
    background: rgba(46, 204, 113, 0.05);
}

.kpi-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--success);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.3);
}

.kpi-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kpi-desc {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.4;
}

/* --- Tool Card --- */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: 0.3s var(--ease-out);
    text-align: center;
}

.tool-card:hover {
    border-color: var(--success);
    transform: scale(1.05);
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--success);
    border: 2px solid rgba(46, 204, 113, 0.2);
}

/* ============================
   ICON BOX
   ============================ */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.icon-box.icon-box-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.icon-box.icon-box-success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
    border-color: rgba(46, 204, 113, 0.2);
}

.icon-box.icon-box-info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
    border-color: rgba(52, 152, 219, 0.2);
}

/* ============================
   BADGES & LABELS
   ============================ */
.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.badge-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 8px 25px;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--primary-dim);
}

.badge-success {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}

.badge-info {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info);
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s var(--ease-out);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================
   NAV CONTROLS
   ============================ */
/* ============================
   NAV CONTROLS
   ============================ */
.nav-controls {
    position: fixed;
    top: 30px;
    right: 100px; /* Positioned to the left of the menu toggle */
    display: flex;
    gap: 10px;
    z-index: 1900; /* High z-index but below menu overlay */
}

.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: 0.3s var(--ease-out);
    backdrop-filter: blur(15px);
}

.nav-btn:hover, .nav-btn:focus-visible {
    background: var(--primary-dim);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--primary);
    outline: none;
}

body.light-mode .nav-btn, 
body.light-mode .menu-toggle {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-btn:hover, 
body.light-mode .menu-toggle:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

.nav-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.nav-btn:active {
    transform: scale(0.95);
}

/* ============================
   PROGRESS BAR
   ============================ */
.progress-bar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    transition: width 0.4s var(--ease-out);
    z-index: 1000;
    box-shadow: 0 0 20px var(--primary);
}

/* ============================
   STAT DISPLAYS
   ============================ */
.stat-group {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-grey);
    text-transform: uppercase;
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    background: var(--border-light);
}

/* ============================
   RESPONSIBILITY ITEMS
   ============================ */
.responsibility-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
}

.responsibility-item {
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: 0.3s var(--ease-out);
}

.responsibility-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.responsibility-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 5px;
}

.responsibility-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ============================
   OFF-CANVAS MENU
   ============================ */
.menu-toggle {
    position: fixed;
    top: 30px;
    right: 40px;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: 0.3s var(--ease-smooth);
}

.menu-toggle:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-dim);
}

.menu-toggle.active {
    /* Position reset to keep it fixed in corner */
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

@media (max-width: 1440px) {
    /* .menu-toggle.active {
        right: 40px;
        top: 40px;
    } REMOVED */
}

.offcanvas-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90vw;
    max-width: 1400px;
    height: auto;
    max-height: 85vh;
    background: var(--bg-menu);
    backdrop-filter: blur(25px);
    border: 1px solid var(--primary);
    border-radius: 20px;
    z-index: 1900;
    transition: 0.6s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9), 0 0 30px var(--primary-glow);
}

.offcanvas-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* .menu-header {
    display: none; REMOVED to show theme toggle
} */

.menu-header {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0;
    z-index: 10;
}

.menu-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    overflow: hidden;
    padding: 15px;
}

@media (max-width: 1200px) {
    .menu-links { grid-template-columns: repeat(3, 1fr); }
    .offcanvas-menu { padding: 30px; }
}

@media (max-width: 900px) {
    .menu-links { 
        grid-template-columns: repeat(2, 1fr);
        overflow-y: auto;
        max-height: 70vh;
    }
}

.menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s var(--ease-out);
}

.offcanvas-menu.active .menu-item {
    opacity: 1;
    transform: translateY(0);
}

.menu-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 16px;
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.4s var(--ease-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.menu-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dim), transparent);
    opacity: 0;
    transition: 0.4s;
}

.menu-link:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--primary-glow);
}

.menu-link.active {
    background: rgba(46, 213, 115, 0.1);
    border-color: var(--success);
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.3);
}

.menu-link.active .menu-link-header i,
.menu-link.active span {
    color: var(--success);
    background: none;
    border: none;
}

.menu-link:hover::before, .menu-link.active::before {
    opacity: 1;
}

.menu-link span {
    position: relative;
    font-size: 0.85rem;
    font-family: var(--font-code);
    color: var(--primary);
    font-weight: 700;
}

.menu-link-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.menu-link-header i {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.7;
    transition: 0.4s;
}

.menu-link:hover .menu-link-header i, .menu-link.active .menu-link-header i {
    transform: scale(1.1) rotate(-5deg);
    opacity: 1;
}

.menu-link-text {
    position: relative;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    z-index: 1;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1800;
    opacity: 0;
    pointer-events: none;
    transition: 0.6s var(--ease-smooth);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
