/* Genel Ayarlar ve Font */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f0f4f8; /* Açık mavi-gri tonu */
    margin: 0;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
}

/* Sayfa Başlığı */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a4a72;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Hediye Kartları Izgara Yapısı */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Hediye Kartı Tasarımı */
.gift-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gift-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Kart Görseli */
.gift-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gift-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görselin orantısını bozmadan kaplamasını sağlar */
    transition: transform 0.4s ease;
}

.gift-card:hover .gift-card-image img {
    transform: scale(1.05);
}

/* Kart İçeriği */
.gift-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* İçeriğin kartın kalan boşluğunu doldurmasını sağlar */
}

.gift-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a4a72;
}

.gift-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    flex-grow: 1; /* Açıklamanın butonu aşağı itmesini sağlar */
    margin-bottom: 20px;
}

/* Hediye Al Butonu */
.gift-button {
    display: block;
    width: 100%;
    padding: 12px 15px; /* Reduced padding to prevent overflow */
    background: linear-gradient(45deg, #28a745, #218838);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.gift-button:hover {
    background: linear-gradient(45deg, #218838, #1e7e34);
    transform: translateY(-2px);
}

.no-gifts {
    grid-column: 1 / -1; /* Tüm ızgarayı kapla */
    text-align: center;
    font-size: 1.2rem;
    padding: 50px;
    background: #fff;
    border-radius: 15px;
    color: #888;
}

/* Footer */
.page-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #888;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    .gift-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .page-header p {
        font-size: 1rem;
    }
}