/* Kampanya Modülü Premium Tasarım */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.kampanya-container {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Hero & Başlık */
.kampanya-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.kampanya-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kampanya-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Filtreler */
.filter-section {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-premium);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.category-filter {
    min-width: 200px;
}

.category-filter select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid #e2e8f0;
    background-color: white;
    cursor: pointer;
}

.btn-filter {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Grid & Kartlar */
.kampanya-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeInUp 1s ease-out;
}

.kampanya-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.kampanya-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-color);
}

.card-image {
    height: 180px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.kampanya-card:hover .card-image img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 4.5em !important;
    line-height: 1.5 !important;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-details {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s;
}

.btn-details:hover {
    gap: 0.6rem;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive & View Modes */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
    }
    .search-box, .category-filter, .btn-filter {
        width: 100%;
    }
    .kampanya-header h1 {
        font-size: 2rem;
    }
}

/* View Switcher */
.view-switcher {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.view-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    padding: 0.5rem 0.8rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* List View */
.kampanya-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kampanya-grid.list-view .kampanya-card {
    flex-direction: row;
    height: auto;
    min-height: 200px;
}

.kampanya-grid.list-view .card-image {
    width: 250px;
    height: auto;
    min-height: 200px;
    border-bottom: none;
    border-right: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.kampanya-grid.list-view .card-content {
    padding: 2rem;
}

/* Gallery View (Compact) */
.kampanya-grid.gallery-view {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.kampanya-grid.gallery-view .card-image {
    height: 120px;
    padding: 1rem;
}

.kampanya-grid.gallery-view .card-title {
    font-size: 1rem;
    -webkit-line-clamp: 2 !important;
    height: 2.6em;
}

.kampanya-grid.gallery-view .card-description {
    display: none !important;
}

.kampanya-grid.gallery-view .card-content {
    padding: 1rem;
}

.kampanya-grid.gallery-view .discount-badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
}

@media (max-width: 576px) {
    .kampanya-grid.list-view .kampanya-card {
        flex-direction: column;
    }
    .kampanya-grid.list-view .card-image {
        width: 100%;
        height: 150px;
    }
    
    .kampanya-grid.gallery-view {
        grid-template-columns: repeat(2, 1fr);
    }
}
