/* Custom CSS for HookVibe AI - Bootstrap Enhanced */

:root {
    --primary-color: #4285F4;
    --secondary-color: #34A853;
    --accent-color: #FBBC05;
    --danger-color: #EA4335;
    --text-dark: #202124;
    --text-light: #5f6368;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1030 !important;
    background-color: white !important;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 16px !important;
    margin: 0 4px;
}

.nav-link:hover {
    background: rgba(66, 133, 244, 0.1);
    color: var(--primary-color) !important;
}

.nav-link.active {
    background: var(--primary-color) !important;
    color: white !important;
    font-weight: 600;
}

.nav-link.active i {
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0A66C2 0%, #004182 50%, #002147 100%);
    color: white;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 196, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 119, 181, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, #00D4FF, #00A8E8, #0077B5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-weight: 800;
}

.hero-subtitle {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-description {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    font-size: 1.35rem;
    line-height: 1.9;
    font-weight: 500;
    letter-spacing: 0.4px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-section h1 .text-white {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    line-height: 1.7;
}

.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.1);
}

/* Live Preview Card - Sticky Positioning */
.live-preview-card {
    position: sticky;
    top: 100px;
    z-index: 1000;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .live-preview-card {
        position: relative;
        top: 0;
    }
}

/* Phone Mockup */
.phone-mockup {
    max-width: 375px;
    margin: 0 auto;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 36px;
    padding: 16px 12px;
    box-shadow: 
        0 0 0 8px #333,
        0 20px 40px rgba(0,0,0,0.3);
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
    background: white;
    border-radius: 24px 24px 0 0;
}

.status-icons {
    display: flex;
    gap: 6px;
}

.app-header {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.author-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.post-time {
    font-size: 12px;
    color: var(--text-light);
}

.post-content-preview {
    padding: 16px 12px;
    min-height: 200px;
    max-height: 450px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.engagement-bar {
    padding: 12px;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    font-size: 13px;
    color: var(--text-light);
}

.engagement-bar span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.character-count {
    background: white;
    border-radius: 0 0 24px 24px;
}

.phone-screen {
    background: white;
    border-radius: 24px;
    padding: 20px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

/* Post Preview */
.post-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    min-height: 200px;
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 15px;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #3367d6;
    border-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

/* Outline Light Button - Hero Section */
.hero-section .btn-outline-light {
    border: 2px solid #00D4FF;
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.hero-section .btn-outline-light:hover {
    background: #00D4FF;
    border-color: #00D4FF;
    color: #004182;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* Card Enhancements */
.card {
    border-radius: 12px;
    border: none;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
    padding: 20px;
}

/* Form Enhancements */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Loading Spinner */
.spinner-border {
    border-width: 3px;
}

/* Sticky Navigation */
.sticky-top {
    top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 40px 0 !important;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .phone-mockup {
        max-width: 100%;
        width: 100%;
    }

    .phone-frame {
        border-radius: 16px;
        padding: 10px 6px;
    }

    .post-content-preview {
        max-height: none !important;
        min-height: 150px;
        overflow-y: visible !important;
    }

    .live-preview-card {
        max-height: none !important;
        overflow-y: visible !important;
    }

    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }

    .btn {
        padding: 10px 20px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .phone-status-bar {
        padding: 6px 8px;
        font-size: 11px;
    }

    .app-header {
        padding: 10px;
    }

    .profile-pic {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .author-name {
        font-size: 13px;
    }

    .post-time {
        font-size: 11px;
    }

    .post-content-preview {
        padding: 12px 10px;
        font-size: 13px;
        line-height: 1.5;
    }

    .engagement-bar {
        padding: 10px;
        font-size: 12px;
    }
}

/* Carousel Preview Styles */
.carousel-preview-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.carousel-slide-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.carousel-slide-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, #4285F4, #34A853, #FBBC05);
}

.slide-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #5f6368;
}

.slide-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4285F4, #0077B5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.slide-total {
    font-size: 14px;
}

.slide-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.slide-preview-title {
    font-size: 28px;
    font-weight: 800;
    color: #202124;
    margin-bottom: 16px;
    line-height: 1.3;
}

.slide-preview-subtitle {
    font-size: 16px;
    line-height: 1.6;
}

.slide-preview-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.brand-colors-preview {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3367d6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .phone-mockup {
        display: none !important;
    }
}
