/* Custom CSS for YID Landing Page */

:root {
    --primary: #6366f1;
    --primary-rgb: 99, 102, 241;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --purple: #8b5cf6;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
}

/* Soft background colors */
.bg-primary-soft {
    background-color: rgba(var(--primary-rgb), 0.1);
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1);
}

.bg-warning-soft {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-danger-soft {
    background-color: rgba(239, 68, 68, 0.1);
}

.bg-info-soft {
    background-color: rgba(6, 182, 212, 0.1);
}

.bg-purple-soft {
    background-color: rgba(139, 92, 246, 0.1);
}

/* Purple text color */
.text-purple {
    color: var(--purple);
}

/* White text variations */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    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(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Floating cards animation */
.floating-card {
    animation: floating 3s ease-in-out infinite;
}

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

/* Hero badge animation */
.hero-badge .badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Feature cards */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    font-size: 2rem;
}

/* Pricing cards */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.border-primary {
    border: 3px solid var(--primary) !important;
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Step numbers */
.step-number {
    font-size: 1.5rem;
}

/* Video wrapper */
.video-wrapper {
    position: relative;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.video-wrapper:hover::after {
    background: rgba(0, 0, 0, 0.4);
}

.play-button {
    z-index: 10;
}

.play-button .btn {
    transition: all 0.3s ease;
}

.play-button .btn:hover {
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Stats section */
.stat-item {
    padding: 1rem;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(var(--primary-rgb), 0.3);
}

/* Social links */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Promo banner */
.promo-banner {
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-section .min-vh-75 {
        min-height: auto;
        padding: 3rem 0;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .cta-section {
        display: none;
    }
}

/* Blog Styles */
.blog-post-card {
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.blog-post-card .stretched-link::after {
    z-index: 1;
}

.blog-post-card .badge {
    z-index: 2;
    position: relative;
}

/* Blog Post Content */
.post-content .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content .entry-content h1,
.post-content .entry-content h2,
.post-content .entry-content h3,
.post-content .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content .entry-content p {
    margin-bottom: 1.5rem;
}

.post-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-content .entry-content ul,
.post-content .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content .entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-content .entry-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.post-content .entry-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content .entry-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

.pagination .page-link:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
}

/* Blog Sidebar */
.blog-sidebar .card {
    transition: all 0.3s ease;
}

.blog-sidebar .card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.blog-sidebar ul li a:hover {
    color: var(--primary) !important;
}

/* Author Bio */
.author-bio {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

/* Blog Page Header */
.page-header {
    border-bottom: 1px solid #e9ecef;
}

/* Blog Responsive */
@media (max-width: 991.98px) {
    .blog-sidebar {
        margin-top: 2rem;
    }
    
    .post-content .entry-content {
        font-size: 1rem;
    }
    
    .post-share .d-flex {
        flex-wrap: wrap;
    }
    
    .post-share .btn {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-card .card-img-top {
        height: 200px !important;
    }
}
