/* ============================================
   FILE: style.css
   PURPOSE: GetShitDone custom theme on Bootstrap 5
   ============================================ */


/* ============================================
   COLOUR SCHEME
   Tool: https://m3.material.io/theme-builder
   Also: https://coolors.co
   ============================================ */

:root {
    --primary:         #6366F1;
    --primary-hover:   #4F46E5;
    --primary-light:   rgba(99, 102, 241, 0.12);
    --secondary:       #EC4899;
    --secondary-light: rgba(236, 72, 153, 0.12);
    --accent:          #10B981;
    --accent-light:    rgba(16, 185, 129, 0.12);
    --bg-dark:         #020617;
    --card-bg:         rgba(51, 65, 85, 0.6);
    --card-solid:      #334155;
    --text-main:       #F8FAFC;
    --text-muted:      #94A3B8;
    --text-dim:        #64748B;
    --border:          rgba(71, 85, 105, 0.5);
    --border-hover:    rgba(99, 102, 241, 0.5);
    --danger:          #F43F5E;
    --warning:         #FBBF24;
    --glow:            rgba(99, 102, 241, 0.25);
    --radius:          0.625rem;
    --radius-lg:       1rem;
}


/* ============================================
   TYPOGRAPHY
   Browse & swap: https://fonts.google.com
   Guide: https://fonts.google.com/knowledge
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --font-heading: 'Sora', sans-serif;
    --font-body:    'DM Sans', sans-serif;
}


/* ============================================
   BASE OVERRIDES
   ============================================ */

body {
    font-family: var(--font-body);
    background-color: transparent;
    color: var(--text-main);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a { color: var(--primary); transition: color 0.2s; }
a:hover { color: var(--primary-hover); }

::selection { background: var(--primary); color: white; }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: rgba(2, 6, 23, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand lord-icon { width: 28px; height: 28px; }

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: var(--radius);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar-nav .nav-link:hover {
    color: var(--text-main) !important;
    background: rgba(255,255,255,0.05);
}

.navbar-nav .nav-link .material-symbols-outlined {
    font-size: 1.1rem;
}

.navbar-toggler {
    border-color: var(--border) !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(248,250,252,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-collapse {
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(2, 6, 23, 0.97);
        backdrop-filter: blur(20px);
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
    }
}


/* ============================================
   BUTTONS (extend Bootstrap)
   ============================================ */

.btn-gsd {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius);
    padding: 0.6rem 1.5rem;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-gsd-primary {
    background: linear-gradient(135deg, var(--primary), #818CF8);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-gsd-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
    color: white;
}

.btn-gsd-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-main);
}

.btn-gsd-outline:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.btn-gsd-danger {
    background: var(--danger);
    color: white;
    border: none;
}

.btn-gsd-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-gsd-lg { padding: 0.85rem 2.25rem; font-size: 1rem; }


/* ============================================
   BADGE
   ============================================ */

.badge-gsd {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.8rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-gsd-primary { background: var(--primary-light); color: var(--primary); }
.badge-gsd-secondary { background: var(--secondary-light); color: var(--secondary); }
.badge-gsd-accent { background: var(--accent-light); color: var(--accent); }


/* ============================================
   HERO
   ============================================ */

.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero { padding: 4rem 0 3rem; }
}


/* ============================================
   SECTION HEADERS
   ============================================ */

.section-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}


/* ============================================
   CARDS
   ============================================ */

.card-gsd {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.card-gsd:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon-wrap.purple { background: var(--primary-light); }
.card-icon-wrap.pink { background: var(--secondary-light); }
.card-icon-wrap.green { background: var(--accent-light); }
.card-icon-wrap lord-icon { width: 28px; height: 28px; }

.card-gsd h3 { font-size: 1.125rem; font-weight: 600; }
.card-gsd p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }


/* ============================================
   PRICING
   ============================================ */

.pricing-card { text-align: center; position: relative; }

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
    background: rgba(99, 102, 241, 0.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.3rem 1.25rem;
    border-radius: 2rem;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
}

.pricing-price span { font-size: 0.875rem; color: var(--text-dim); font-weight: 400; }

.pricing-features { list-style: none; padding: 0; text-align: left; }

.pricing-features li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-features .material-symbols-outlined { font-size: 1.1rem; color: var(--accent); }


/* ============================================
   ABOUT / CTA
   ============================================ */

.about-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

@media (max-width: 768px) { .about-card { padding: 2rem; } }


/* ============================================
   FORMS
   ============================================ */

.form-control-gsd {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-main);
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-gsd::placeholder { color: var(--text-dim); }

.form-control-gsd:focus {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow);
    color: var(--text-main);
    outline: none;
}

.form-label-gsd {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}


/* ============================================
   DASHBOARD — TASKS
   ============================================ */

.task-list { display: flex; flex-direction: column; gap: 0.75rem; }

.task-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, opacity 0.3s, transform 0.3s;
    animation: slideDown 0.3s ease forwards;
}

.task-item:hover { border-color: var(--border-hover); }
.task-item.completed { opacity: 0.4; }
.task-item.completed .task-title { text-decoration: line-through; color: var(--text-dim); }

.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.task-checkbox:checked { background: var(--accent); border-color: var(--accent); }

.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.task-checkbox:hover { border-color: var(--primary); }
.task-content { flex: 1; min-width: 0; }
.task-title { font-weight: 500; }

.task-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.task-actions { display: flex; gap: 0.25rem; }

.task-actions button {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.task-actions button:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.task-actions button.delete-btn:hover { color: var(--danger); }

/* Progress bar */
.progress-gsd {
    height: 6px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.progress-gsd-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Filter tabs */
.filter-tab {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover { border-color: var(--primary); color: var(--text-main); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

.empty-state { text-align: center; padding: 3rem; color: var(--text-dim); }
.empty-state .material-symbols-outlined { font-size: 3rem; color: var(--border); }


/* ============================================
   MODAL
   ============================================ */

.modal-content-gsd {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-main);
}

.modal-backdrop { --bs-backdrop-opacity: 0.85; }

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}


/* ============================================
   TOAST
   ============================================ */

.toast-container-gsd {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-gsd {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-main);
    animation: slideInRight 0.3s ease forwards;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.toast-gsd.success { border-left: 3px solid var(--accent); }
.toast-gsd.error { border-left: 3px solid var(--danger); }
.toast-gsd.success .material-symbols-outlined { color: var(--accent); }
.toast-gsd.error .material-symbols-outlined { color: var(--danger); }


/* ============================================
   FOOTER
   ============================================ */

footer {
    border-top: 1px solid rgba(71, 85, 105, 0.2);
    color: var(--text-dim);
    font-size: 0.8125rem;
}

footer a { color: var(--text-dim); }
footer a:hover { color: var(--primary); }


/* ============================================
   404
   ============================================ */

.error-code {
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) { .error-code { font-size: 6rem; } }


/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(30px); }
}

.anim-fade-up {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
