/* ================================================
   LOG.OS Landing Page - High Conversion CSS
   Author: Mauro Duarte
   ================================================ */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Roboto Slab', serif;
    
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 100;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Specific heading weights for hierarchy */
h1 {
    font-weight: 100; /* Thin - Most elegant */
}

h2, h3 {
    font-weight: 200; /* Extra Light */
}

h4, h5, h6 {
    font-weight: 300; /* Light */
}

/* Strong elements in headings */
h1 strong, h2 strong, h3 strong {
    font-weight: 400; /* Regular for emphasis */
}

.display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 100; /* Elegant thin weight */
}

/* === LANGUAGE SELECTOR === */
#language-selector .btn {
    border: 2px solid #dee2e6;
    font-weight: 600;
    transition: all var(--transition-speed);
}

#language-selector .btn:hover {
    background: var(--dark-color);
    color: var(--white-color);
    border-color: var(--dark-color);
}

#language-selector .btn.active {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* === NAVIGATION === */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(248, 249, 250, 0.95) !important;
    transition: all var(--transition-speed);
}

.navbar-brand img {
    transition: transform var(--transition-speed);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.03) 0%, rgba(108, 117, 125, 0.03) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.book-cover-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.book-cover-image {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.book-cover-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* === PULSE BUTTON ANIMATION === */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.pulse-button {
    animation: pulse 2s infinite;
    transition: all var(--transition-speed);
}

.pulse-button:hover {
    animation: none;
    transform: scale(1.05);
}

/* === TRUST BADGES === */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge i {
    font-size: 1.5rem;
}

/* === SOCIAL PROOF === */
.social-proof {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.stat-card {
    padding: 2rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-icon i {
    font-size: 3rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* === FEATURE CARDS === */
.feature-card {
    padding: 2rem;
    text-align: center;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    margin-bottom: 1rem;
}

/* === PERFECT FOR SECTION === */
.perfect-for-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

/* === TESTIMONIALS === */
.testimonial-card {
    padding: 2rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--danger-color);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
}

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

.testimonial-card blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    flex-grow: 1;
}

/* Ensure consistent height for testimonial content */
#testimonials .row {
    align-items: stretch;
}

/* === MEDIA CARDS === */
.media-card {
    padding: 2rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--dark-color);
    transition: all var(--transition-speed);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.media-badge {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.media-card h5 {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.media-card p {
    flex-grow: 1;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.media-card .btn {
    margin-top: auto;
}

/* Ensure equal height for media cards row */
#media .row {
    align-items: stretch;
}

/* === PRICING SECTION === */
.bg-gradient-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
}

.pricing-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    color: var(--dark-color);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    border: 3px solid var(--success-color);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--success-color);
    color: var(--white-color);
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.pricing-original {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.pricing-original del {
    opacity: 0.7;
}

.pricing-current {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.pricing-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--white-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.pricing-body {
    padding: 2rem;
    flex-grow: 1;
}

.pricing-logo {
    height: 60px;
    opacity: 0.8;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    font-size: 1.25rem;
}

.pricing-footer {
    padding: 2rem;
    background: #f8f9fa;
}

/* === GUARANTEE SECTION === */
.guarantee-section {
    animation: fadeIn 1s ease-in;
}

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

/* === BONUS SECTION === */
.bonus-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed);
}

.bonus-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
}

.bonus-icon i {
    font-size: 3rem;
}

.bonus-logo {
    height: 80px;
    filter: brightness(1.2);
}

.whatsapp-bonus {
    background: rgba(40, 167, 69, 0.1);
    transition: all var(--transition-speed);
}

.whatsapp-bonus:hover {
    background: rgba(40, 167, 69, 0.15);
    transform: scale(1.02);
}

/* === SHARE SECTION === */
.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* === AUTHOR SECTION === */
.author-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    transition: all var(--transition-speed);
}

.author-image:hover {
    transform: scale(1.05);
    border-color: var(--success-color);
}

.author-social a {
    transition: all var(--transition-speed);
}

.author-social a:hover {
    transform: translateY(-3px);
}

/* === FINAL CTA === */
.final-cta {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* === FOOTER === */
footer {
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
}

footer a:hover {
    color: var(--primary-color) !important;
    transition: color var(--transition-speed);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .pricing-current {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    /* Testimonials: 2 columns on tablet */
    #testimonials .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #testimonials .col-lg-4:nth-child(1),
    #testimonials .col-lg-4:nth-child(2) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .book-cover-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .author-image {
        width: 200px;
        height: 200px;
    }
    
    .featured-badge {
        font-size: 0.7rem;
        padding: 0.4rem 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .display-3, .display-4, .display-5, .display-6 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .pricing-current {
        font-size: 2rem;
    }
    
    #language-selector {
        margin: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === UTILITIES === */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* === LOADING ANIMATION === */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* === ACCESSIBILITY === */
.btn:focus,
.form-control:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    #language-selector,
    #share,
    footer {
        display: none;
    }
}
