/**
 * Component-specific styles for Awesome Books website
 * Contains styles for navigation, hero, features, pricing, etc.
 */

/* Navigation Styles */
.nav-container {
    position: fixed;
    width: 100%;
    z-index: 50;
    padding: 0.75rem 1rem;
    top: 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(34, 211, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.nav-logo {
    width: 2rem;
    height: 2rem;
    color: #22d3ee;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #22d3ee;
}

.nav-button {
    background: rgba(34, 211, 238, 0.8);
    backdrop-filter: blur(4px);
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: #06b6d4;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #22d3ee;
}

.mobile-menu-btn i {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.mobile-nav.active {
    display: flex;
}

/* Hero Styles */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(34, 211, 238, 0.9), rgba(0, 0, 0, 0.9));
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    color: #22d3ee;
    margin: 0 auto 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    color: #d1d5db;
}

/* Features Styles */
.features {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #000000, #111827);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 1.5rem;
    background: #111827;
    border-radius: 0.75rem;
    border: 1px solid #164e63;
    transition: all 0.3s ease;
    text-align: center;
    group: hover;
}

.feature-card:hover {
    border-color: #22d3ee;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    color: #22d3ee;
    margin: 0 auto 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #22d3ee;
}

.feature-description {
    color: #9ca3af;
}

/* Interactive Reading Styles */
.interactive-reading {
    padding: 6rem 0;
    background: #000000;
}

.interactive-content {
    position: relative;
}

.interactive-border {
    position: absolute;
    inset: -1px;
    background: linear-gradient(to right, #0891b2, #3b82f6);
    border-radius: 1rem;
    filter: blur(1px);
    opacity: 0.2;
}

.interactive-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    background: #111827;
    padding: 2rem;
    border-radius: 0.75rem;
}

.interactive-image img {
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
}

.interactive-image img:hover {
    transform: scale(1.05);
}

.interactive-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.interactive-description {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

/* Pricing Styles */
.pricing {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #111827, #000000);
}

.pricing-card-container {
    max-width: 28rem;
    margin: 0 auto;
    position: relative;
}

.pricing-border {
    position: absolute;
    inset: -1px;
    background: linear-gradient(to right, #0891b2, #3b82f6);
    border-radius: 1rem;
    filter: blur(1px);
    opacity: 0.2;
}

.pricing-card {
    position: relative;
    background: #111827;
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid #164e63;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
}

.pricing-amount {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 5rem;
    font-weight: 700;
    color: #22d3ee;
}

.period {
    color: #9ca3af;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #22d3ee;
    margin-right: 0.75rem;
}

.pricing-button {
    width: 100%;
    background: #22d3ee;
    color: #000000;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-button:hover {
    background: #06b6d4;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

/* CTA Styles */
.cta {
    position: relative;
    padding: 6rem 0;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(34, 211, 238, 0.9));
}

.cta-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.cta-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    color: #d1d5db;
}

/* Footer Styles */
.footer {
    background: #000000;
    color: #9ca3af;
    padding: 3rem 0;
    border-top: 1px solid #374151;
}

.footer .container {
    text-align: center;
}

.footer-icon {
    width: 2rem;
    height: 2rem;
    color: #22d3ee;
    margin: 0 auto 1rem;
}

.footer-text {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #22d3ee;
}

.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-button:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: #22d3ee;
}

.user-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #22d3ee;
}

.user-name {
    font-weight: 500;
}

.chevron-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.user-button.active .chevron-icon {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 12rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-icon {
    width: 1.25rem;
    height: 1.25rem;
}