/* BUYDREX - MODERN CSS */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 76px;
}

/* Header */
.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar {
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text i {
    color: #ffd700;
    animation: rotateScale 3s ease-in-out infinite;
}

@keyframes rotateScale {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    margin-bottom: 0;
    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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 6s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    color: white !important;
    z-index: 10;
    position: relative;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 1 !important;
    text-shadow: 3px 3px 8px rgba(0,0,0,1);
    color: #ffffff !important;
    z-index: 100;
    position: relative;
    font-weight: 500;
    line-height: 1.6;
    background: rgba(0,0,0,0.7);
    padding: 1.2rem;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-stats .stat span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    text-align: center;
    position: relative;
    z-index: 2;
}

.comparison-visual {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.product-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-icon {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.product-icon:hover {
    transform: scale(1.1);
}

.product-icon p {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.vs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: pulse 2s infinite;
}

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

.comparison-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Comparison Cards */
.comparisons-section {
    background: var(--light-color);
}

/* Ana sayfadaki comparison kartları için özel resim boyutu */
.comparisons-section .product-image {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: var(--border-radius) !important;
    margin-bottom: 0.5rem !important;
    border: 2px solid var(--white) !important;
    background: var(--white) !important;
    max-width: 80px !important;
    min-width: 80px !important;
}

.comparison-card {
    height: 100%;
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card .card {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.comparison-card:hover .card {
    box-shadow: var(--box-shadow-lg);
}

.products-vs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.products-vs .product {
    text-align: center;
    flex: 1;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    border: 2px solid var(--white);
    background: var(--white);
    max-width: 100%;
}

.product-name {
    font-size: 0.75rem;
    color: var(--secondary-color);
    display: block;
}

.vs-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.comparison-title a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
}

.comparison-title a:hover {
    color: var(--primary-color);
}

.comparison-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.comparison-meta i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: auto;
}

footer img {
    filter: brightness(0) invert(1);
}

/* Search Form */
.navbar form {
    min-width: 300px;
}

.navbar .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.navbar .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.navbar .form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
    color: white;
}

.btn-outline-light:hover {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .navbar form {
        min-width: 200px;
    }
    
    .products-vs {
        padding: 0.5rem;
    }
    
    .product-image {
        width: 45px;
        height: 45px;
        object-fit: contain;
        object-position: center;
    }
    
    /* Ana sayfadaki kartlar için mobil boyut */
    .comparisons-section .product-image {
        width: 60px;
        height: 60px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .comparison-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
}