/**
 * css/landing.css
 * Landing page styles matching Part files color scheme
 */

:root {
    --primary: #5b6ee1;
    --secondary: #6a47a4;
    --accent: #f093fb;
    --text-dark: #212529;
    --text-light: #495057;
    --surface: #ffffff;
    --shadow: 0 20px 60px rgba(0,0,0,.15);
    --shadow-sm: 0 5px 20px rgba(0,0,0,.08);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f8f9fa;
}

/* Navigation */
.main-nav {
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

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

.nav-user {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.nav-link:hover {
    color: var(--primary);
}

.nav-link-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 110, 225, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, 
            rgba(255,255,255,0.03) 0px, 
            rgba(255,255,255,0.03) 1px, 
            transparent 1px, 
            transparent 40px),
        repeating-linear-gradient(0deg, 
            rgba(255,255,255,0.03) 0px, 
            rgba(255,255,255,0.03) 1px, 
            transparent 1px, 
            transparent 40px);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,.2);
    color: white;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    opacity: 0.95;
    margin-bottom: 40px;
    font-weight: 300;
    color: white;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
}

.cta-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.cta-secondary-inverse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(91, 110, 225, 0.2);
}

.cta-secondary-inverse:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 110, 225, 0.3);
    background: rgba(91, 110, 225, 0.05);
}

.cta-wrapper {
    text-align: center;
    margin: 10px auto 40px auto;
    width: 100%;
}    

/* Dashboard Hero (logged in) */
.hero-dashboard {
    padding: 60px 20px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 50px;
}

/* Book Section */
.book-section {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
}

/*
.book-cover {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 2/3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    padding: 20px;
}
*/

.book-cover {
    flex: 0 0 250px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    overflow: hidden; /* This ensures the rounded corners are maintained */
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.book-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.author-details small {
    color: var(--text-light);
}

/* Parts Grid */
.parts-grid, .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.part-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--primary);
    position: relative;
}

.part-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.part-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.part-card.in-progress {
    border-top-color: var(--accent);
}

.part-card.in-progress::before {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.part-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.part-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.part-status {
    text-align: right;
    flex: 1;
    margin-left: 20px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.status-badge.in-progress {
    background: rgba(240, 147, 251, 0.2);
    color: var(--accent);
}

.status-badge.not-started {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.progress-bar {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    height: 100%;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-light);
}

.part-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.part-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 48px;
}

.chapters-list {
    list-style: none;
    margin-bottom: 25px;
    padding-left: 0;
}

.chapters-list li {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chapters-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

.part-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.feature-tag {
    padding: 4px 12px;
    background: rgba(91, 110, 225, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.part-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.part-link:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(91, 110, 225, 0.4);
}

/* Quick Actions */
.quick-actions h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Upcoming Features */
.upcoming-features {
    margin-top: 60px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(91, 110, 225, 0.03), rgba(106, 71, 164, 0.03));
    border-radius: 20px;
    border: 2px dashed rgba(91, 110, 225, 0.2);
}

.upcoming-features h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.upcoming-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    text-align: center;
    position: relative;
    border: 2px solid rgba(91, 110, 225, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.upcoming-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(91, 110, 225, 0.15);
    border-color: var(--primary);
}

.upcoming-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(91, 110, 225, 0.1), rgba(106, 71, 164, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.upcoming-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.upcoming-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.coming-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.action-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.action-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Features Section */
.features {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
}

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

.feature {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(91, 110, 225, 0.05), rgba(106, 71, 164, 0.05));
    border-radius: 20px;
    margin-bottom: 60px;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.cta-section > p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.cta-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(91, 110, 225, 0.4);
}

.cta-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    opacity: 0.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .book-section {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        text-align: center;
    }
    
    .book-cover {
        margin: 0 auto;
    }
    
    .author-info {
        justify-content: center;
    }
    
    .parts-grid, .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-features {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
