/* Formacı Hafız - Futbol Forma Satış Sitesi */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --primary-red: #c41e3a;
    --secondary-red: #e63950;
    --accent-red: #ff4757;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #888888;
    --gray-dark: #333333;
    --gradient-red: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(196, 30, 58, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-dark);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 30, 58, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-red);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-tagline {
    font-size: 0.75rem;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-red) 50%, var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--gray-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(40, 10, 15, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(196, 30, 58, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(196, 30, 58, 0.1);
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-title::before {
    content: '🔍';
    font-size: 1.25rem;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.7rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.filter-group input:hover,
.filter-group select:hover {
    border-color: rgba(196, 30, 58, 0.5);
    background: rgba(196, 30, 58, 0.1);
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.2), 0 0 20px rgba(196, 30, 58, 0.3);
    background: rgba(196, 30, 58, 0.05);
}

.filter-group select option {
    background: var(--secondary-black);
    color: var(--white);
    padding: 0.5rem;
}

.clear-filters {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto;
}

.clear-filters:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Product Card */
.product-card {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(196, 30, 58, 0.5);
}

.product-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-original {
    background: linear-gradient(135deg, #00c853 0%, #00a844 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}

.badge-replica {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.product-info {
    padding: 1.5rem;
}

.product-team {
    font-size: 0.75rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.product-price span {
    font-size: 1rem;
    color: var(--gray-medium);
}

.product-size {
    background: rgba(196, 30, 58, 0.2);
    color: var(--primary-red);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--secondary-black);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(196, 30, 58, 0.3);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-red);
}

.modal-body {
    padding: 2rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
}

.modal-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.modal-thumbnail:hover,
.modal-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-red);
}

.modal-info {
    display: grid;
    gap: 1.5rem;
}

.modal-team {
    font-size: 0.85rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-product-name {
    font-size: 2rem;
    font-weight: 800;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-meta-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-meta-label {
    font-size: 0.7rem;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-meta-value {
    font-size: 1rem;
    font-weight: 600;
}

.modal-meta-value.original {
    color: #00c853;
}

.modal-meta-value.replica {
    color: #ff9800;
}

.modal-description {
    color: var(--gray-medium);
    line-height: 1.8;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.modal-price span {
    font-size: 1.25rem;
    color: var(--gray-medium);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(196, 30, 58, 0.2);
    padding: 2rem;
    text-align: center;
}

.footer p {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.footer .brand {
    color: var(--primary-red);
    font-weight: 700;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-medium);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 0.75rem;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .main-container {
        padding: 1rem;
    }

    .hero {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .filter-section {
        padding: 1rem;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }

    .filter-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-width: unset;
    }

    .clear-filters {
        width: 100%;
        margin-left: 0;
        padding: 1rem;
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-image-container {
        height: 280px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    /* Modal Mobile */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal {
        border-radius: 24px 24px 0 0;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .modal-main-image {
        height: 250px;
        border-radius: 12px;
    }

    .modal-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .modal-thumbnail {
        width: 70px;
        height: 50px;
        flex-shrink: 0;
    }

    .modal-product-name {
        font-size: 1.5rem;
    }

    .modal-meta {
        gap: 0.75rem;
    }

    .modal-meta-item {
        padding: 0.6rem 1rem;
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }

    .modal-price {
        font-size: 2rem;
    }

    .whatsapp-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 14px;
    }

    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }

    .footer {
        padding: 1.5rem 1rem;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* Responsive - Small Phones */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.75rem;
    }

    .logo {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .brand-name {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .header-tagline {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .main-container {
        padding: 0.75rem;
    }

    .hero {
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .filter-section {
        padding: 0.875rem;
        border-radius: 12px;
    }

    .filter-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .filter-group label {
        font-size: 0.7rem;
    }

    .filter-group select {
        padding: 0.875rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .clear-filters {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .products-grid {
        gap: 1rem;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-image-container {
        height: 240px;
    }

    .product-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
        top: 0.75rem;
        left: 0.75rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-team {
        font-size: 0.65rem;
    }

    .product-name {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .product-price span {
        font-size: 0.85rem;
    }

    .product-size {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Modal Small Phone */
    .modal {
        max-height: 100vh;
        border-radius: 20px 20px 0 0;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-main-image {
        height: 200px;
    }

    .modal-thumbnail {
        width: 60px;
        height: 45px;
    }

    .modal-team {
        font-size: 0.75rem;
    }

    .modal-product-name {
        font-size: 1.25rem;
    }

    .modal-info {
        gap: 1rem;
    }

    .modal-meta-item {
        padding: 0.5rem 0.75rem;
    }

    .modal-meta-label {
        font-size: 0.6rem;
    }

    .modal-meta-value {
        font-size: 0.9rem;
    }

    .modal-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .modal-price {
        font-size: 1.75rem;
    }

    .modal-price span {
        font-size: 1rem;
    }

    .whatsapp-btn {
        padding: 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
        gap: 0.75rem;
    }

    .whatsapp-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .whatsapp-btn:hover {
        transform: none;
    }

    .whatsapp-btn:active {
        transform: scale(0.98);
    }

    .filter-group select,
    .clear-filters {
        min-height: 48px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-red);
}