/**
 * Modern Enhancements CSS for 1Free.eu
 * Bootstrap 5 Compatible - Works alongside existing styles
 */

/* Hero Section Enhancements */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Modern Pricing Card */
.modern-pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3) !important;
}

/* Offer Section Enhancements */
.partial-offer {
    position: relative;
    overflow: hidden;
}

.partial-offer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.offer-box {
    transition: transform 0.3s ease;
}

.offer-box:hover {
    transform: translateY(-10px);
}

.offer-wrapper {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.offer-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Features Section */
.features-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Buttons */
.cta-button {
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-light {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

/* Cards */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Accordion Enhancements */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Form Enhancements */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    border-radius: 0.75rem;
    border: none;
}

/* Content Text */
.content-text {
    line-height: 1.8;
    color: #495057;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    color: #212529;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text ul,
.content-text ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* Shadows */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Text Colors */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .hero-section .min-vh-50 {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.position-relative {
    position: relative !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* Animation Delays */
[data-aos-delay] {
    transition-delay: 0s;
}

/* Table Enhancements */
.spec-table tbody tr {
    transition: background-color 0.3s ease;
}

.spec-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Section Spacing */
section {
    position: relative;
}

