/* Mağazalar Sayfası CSS */

/* Hero Section Özelleştirmesi */
.magazalar-hero {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(169, 20, 70, 0.1) 0%, rgba(125, 0, 52, 0.1) 100%);
    border-radius: 8px;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    animation: heroGradientShift 8s ease-in-out infinite;
}

@keyframes heroGradientShift {
    0%, 100% {
        background: linear-gradient(135deg, rgba(169, 20, 70, 0.15) 0%, rgba(125, 0, 52, 0.1) 100%);
    }
    25% {
        background: linear-gradient(225deg, rgba(125, 0, 52, 0.12) 0%, rgba(169, 20, 70, 0.08) 100%);
    }
    50% {
        background: linear-gradient(315deg, rgba(169, 20, 70, 0.1) 0%, rgba(125, 0, 52, 0.15) 100%);
    }
    75% {
        background: linear-gradient(45deg, rgba(125, 0, 52, 0.08) 0%, rgba(169, 20, 70, 0.12) 100%);
    }
}

.magazalar-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroRotate 20s linear infinite;
}

@keyframes heroRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.magazalar-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: heroTitleSlide 1s ease-out forwards;
    opacity: 0;
    transform: translateY(-30px);
}

@keyframes heroTitleSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.magazalar-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    animation: heroDescSlide 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes heroDescSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.magazalar-main {
    background: #f8f9fa;
    padding: 3rem 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
    width: 100%;
}

@media (min-width: 1400px) {
    .container {
        padding: 0 6rem;
    }
}

@media (min-width: 1800px) {
    .container {
        padding: 0 8rem;
    }
}

/* Filtre Bölümü */
.magaza-filters {
    background: #fff;
    padding: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    position: relative;
    animation: filterSlideDown 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes filterSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    animation: btnFadeIn 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

.filter-btn:nth-child(1) { animation-delay: 0.1s; }
.filter-btn:nth-child(2) { animation-delay: 0.2s; }
.filter-btn:nth-child(3) { animation-delay: 0.3s; }
.filter-btn:nth-child(4) { animation-delay: 0.4s; }
.filter-btn:nth-child(5) { animation-delay: 0.5s; }
.filter-btn:nth-child(6) { animation-delay: 0.6s; }
.filter-btn:nth-child(7) { animation-delay: 0.7s; }

@keyframes btnFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.filter-btn:hover {
    color: #fff !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(169, 20, 70, 0.35);
    background: var(--primary) !important;
}

.filter-btn:hover::before {
    width: 0 !important;
    height: 0 !important;
}

.filter-btn:hover span {
    color: #ffffff !important;
    position: relative;
    z-index: 10;
    background: transparent;
}

.filter-btn:hover,
.filter-btn:hover *,
.filter-btn:hover span,
.filter-btn:hover::after {
    color: #ffffff !important;
}

.filter-btn.active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(169, 20, 70, 0.4);
    transform: scale(1.05);
    border-color: var(--primary);
}

.filter-btn.active span {
    color: #fff !important;
    font-weight: 700;
}

@keyframes activeGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(169, 20, 70, 0.5), 0 0 0 3px rgba(169, 20, 70, 0.2);
    }
    50% {
        box-shadow: 0 10px 35px rgba(169, 20, 70, 0.7), 0 0 0 5px rgba(169, 20, 70, 0.3);
    }
}

@keyframes activeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes activeWave {
    0% {
        box-shadow: 0 0 0 0 rgba(169, 20, 70, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(169, 20, 70, 0);
    }
    100% {
        box-shadow: 0 6px 16px rgba(169, 20, 70, 0.4);
    }
}

.filter-btn span {
    position: relative;
    z-index: 5;
}

/* Mağazalar Grid */
.magazalar-grid {
    padding: 2rem 0;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Mağaza Kartı */
.magaza-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    animation: cardReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.magaza-card:nth-child(1) { animation-delay: 0.05s; }
.magaza-card:nth-child(2) { animation-delay: 0.1s; }
.magaza-card:nth-child(3) { animation-delay: 0.15s; }
.magaza-card:nth-child(4) { animation-delay: 0.2s; }
.magaza-card:nth-child(5) { animation-delay: 0.25s; }
.magaza-card:nth-child(6) { animation-delay: 0.3s; }
.magaza-card:nth-child(7) { animation-delay: 0.35s; }
.magaza-card:nth-child(8) { animation-delay: 0.4s; }
.magaza-card:nth-child(9) { animation-delay: 0.45s; }
.magaza-card:nth-child(10) { animation-delay: 0.5s; }
.magaza-card:nth-child(11) { animation-delay: 0.55s; }
.magaza-card:nth-child(12) { animation-delay: 0.6s; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.magaza-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

/* Hover glow across the whole card, centered behind the logo */
.magaza-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(260px 260px at 50% 180px, rgba(169, 20, 70, 0.14), rgba(169, 20, 70, 0) 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.magaza-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    border-color: var(--primary);
}

.magaza-card:hover::before {
    left: 100%;
}

.magaza-card:hover::after {
    opacity: 1;
}

/* Animasyonlar */
.magaza-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.magaza-card.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Mağaza Logosu */
.magaza-logo {
    width: 100%;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: none;
    z-index: 1;
}

.magaza-logo::after {
    content: none;
}

@keyframes logoSpinGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.magaza-card:hover .magaza-logo {
    transform: scale(1.01);
}

.magaza-card:hover .magaza-logo::after {
    opacity: 0.5;
}

.magaza-logo img {
    width: 220px;
    height: 110px;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: none;
}

.magaza-card:hover .magaza-logo img {
    transform: scale(1.03);
}

/* Mağaza İçeriği */
.magaza-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.magaza-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.magaza-category {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(169, 20, 70, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0 auto;
}

.magaza-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--grey);
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.magaza-location i {
    color: var(--primary);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .magazalar-hero {
        height: 350px;
    }

    .magazalar-hero h1 {
        font-size: 3rem;
    }

    .magazalar-hero p {
        font-size: 1.1rem;
    }

    .magaza-logo {
        height: 180px;
        padding: 20px;
    }
    
    .magaza-logo img {
        width: 200px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .magazalar-main {
        padding: 2rem 0;
    }

    .magaza-filters {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .filter-buttons {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .magazalar-hero {
        height: 300px;
        padding: 1.5rem;
    }

    .magazalar-hero h1 {
        font-size: 2.2rem;
    }

    .magazalar-hero p {
        font-size: 1rem;
    }

    .magaza-card {
        padding: 1.5rem 1rem;
    }

    .magaza-logo {
        height: 160px;
        padding: 15px;
    }
    
    .magaza-logo img {
        width: 180px;
        height: 90px;
    }

    .magaza-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .magazalar-hero {
        height: 250px;
        padding: 1rem;
    }

    .magazalar-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .magazalar-hero p {
        font-size: 0.9rem;
    }

    .filter-buttons {
        gap: 0.6rem;
        padding: 0 0.25rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .grid-wrapper {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .magaza-card {
        padding: 1.2rem 0.8rem;
    }

    .magaza-logo {
        height: 140px;
        padding: 15px;
    }
    
    .magaza-logo img {
        width: 160px;
        height: 80px;
    }

    .magaza-content h3 {
        font-size: 1rem;
    }

    .magaza-category {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Scroll Animasyon için ek stiller */
.magazalar-grid .magaza-card {
    opacity: 0;
    transform: translateY(30px);
}

.magazalar-grid .magaza-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger effect için gecikme */
.magazalar-grid .magaza-card:nth-child(1) { animation-delay: 0.05s; }
.magazalar-grid .magaza-card:nth-child(2) { animation-delay: 0.1s; }
.magazalar-grid .magaza-card:nth-child(3) { animation-delay: 0.15s; }
.magazalar-grid .magaza-card:nth-child(4) { animation-delay: 0.2s; }
.magazalar-grid .magaza-card:nth-child(5) { animation-delay: 0.05s; }
.magazalar-grid .magaza-card:nth-child(6) { animation-delay: 0.1s; }
.magazalar-grid .magaza-card:nth-child(7) { animation-delay: 0.15s; }
.magazalar-grid .magaza-card:nth-child(8) { animation-delay: 0.2s; }
.magazalar-grid .magaza-card:nth-child(9) { animation-delay: 0.05s; }
.magazalar-grid .magaza-card:nth-child(10) { animation-delay: 0.1s; }
.magazalar-grid .magaza-card:nth-child(11) { animation-delay: 0.15s; }
.magazalar-grid .magaza-card:nth-child(12) { animation-delay: 0.2s; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--grey);
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--grey);
}
