/* ListCoach Styles */

:root {
    --primary: #5e4afd;
    --primary-dark: #970cff;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Landing Page */
.landing {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
}

.hero {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Auth Container */
.auth-container {
    max-width: 450px;
    margin: 0 auto 60px;
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.5;
    vertical-align: middle;
    box-sizing: border-box;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: #475569;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #dbeafe;
    color: #5e4afd;
    border: 1px solid #bfdbfe;
}

/* Features Grid */
.features {
    max-width: 900px;
    margin: 0 auto;
    color: var(--white);
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature p {
    opacity: 0.9;
}

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    height: 32px;
    width: 32px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.brand-link:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
}

/* Onboarding */
.onboarding {
    max-width: 1200px;
    margin: 0 auto;
}

.progress-steps {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.step {
    padding: 12px 24px;
    background: var(--white);
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-muted);
}

.step.active {
    background: var(--primary);
    color: var(--white);
}

.onboarding-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.onboarding-form h2 {
    margin-bottom: 30px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-card {
    display: block;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.radio-card input[type="radio"] {
    margin-right: 12px;
}

.radio-card input[type="radio"]:checked ~ .radio-content {
    color: var(--primary);
}

.radio-content strong {
    display: block;
    margin-bottom: 4px;
}

.radio-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: opacity 0.2s, transform 0.2s;
}

.card-large {
    grid-column: span 2;
}

.card h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Pro template styles */
.pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #970cff 0%, #70b5fd 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.card.pro-locked {
    opacity: 0.7;
}

.card.pro-locked:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Stats */
.stat-large {
    text-align: center;
    margin: 30px 0;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    transition: width 0.5s ease;
}

.stat-detail {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label-small {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Tasks */
.completion-rate {
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--primary);
}

.task-list {
    list-style: none;
}

.task-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.task-item:last-child {
    border-bottom: none;
}

.task-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.task-item input[type="checkbox"] {
    margin-right: 12px;
}

.task-item.completed span {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-item.drag-over {
    border-top: 2px solid var(--primary);
    padding-top: 10px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-muted {
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: var(--white);
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.modal-body {
    padding: 24px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 10px 20px;
    min-width: 80px;
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--light-bg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* Responsive */
/* Footer */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--border);
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease-out;
}

.cookie-consent.show {
    display: block;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    color: var(--text);
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn {
    white-space: nowrap;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .card-large {
        grid-column: span 1;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .burger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        border-radius: 0 0 0 8px;
        box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        max-height: 800px;
        overflow-y: auto;
    }
    
    .nav-menu a {
        padding: 16px 20px;
        border-top: 1px solid var(--border);
    }
    
    .modal {
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .footer-content {
        justify-content: center;
        text-align: center;
    }
    
    .landing footer > div {
        justify-content: center !important;
        text-align: center;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-consent-buttons .btn {
        width: 100%;
    }
}

