/* homepage.css - Homepage specific layout styles */

/* Stars Banner Styles */
.stars-link {
    text-decoration: none;
    color: var(--bs-body-color);
    display: block;
    transition: transform 0.3s ease;
}

.stars-link:hover {
    text-decoration: none;
}

.stars-banner {
    background: #FEC70B;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(254, 199, 11, 0.3);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    position: relative;
    overflow: hidden;
    animation: bannerPulse 2s ease-in-out infinite;
    transition: all 0.4s ease;
}

.stars-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.star-icon-pulse {
    animation: starPulse 1.5s ease-in-out infinite;
    display: inline-block;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    width: 30px;
    vertical-align: middle;
}

.stars-text {
    position: relative;
    z-index: 1;
    color: #000 !important;
}

.stars-link:hover .stars-banner {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(254, 199, 11, 0.5);
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

@keyframes bannerPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(254, 199, 11, 0.3);
    }

    50% {
        box-shadow: 0 6px 25px rgba(254, 199, 11, 0.6);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

@media (max-width: 768px) {
    .stars-banner {
        font-size: 16px;
        padding: 15px 20px;
    }
}

/* Quick Links Styles */
.quick-links a.category-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Product Card Layout Styles */
.card-body {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.card-product {
    height: 361px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Info Card (Collapsible) Styles */
.about-info-section {
    padding: 40px 0;
}

.about-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card-header {
    background: #FEC70B;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
}

.info-card-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.info-card-toggle:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.1);
}

.info-card-toggle i {
    font-size: 16px;
    color: #212529;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:not(.collapsed) .info-card-toggle i {
    transform: rotate(180deg);
}

.info-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
    opacity: 1;
}

.info-card.collapsed .info-card-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.info-card-footer {
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
    background: #fafafa;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
    opacity: 1;
}

.info-card.collapsed .info-card-footer {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-top: none;
}

.info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #212529;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 5px 16px;
    border-radius: 8px;
    background: #FEC70B;
    transition: all 0.3s ease;
}

.info-card-link:hover {
    background: #e5b300;
    color: #000;
    transform: translateX(4px);
    text-decoration: none;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-icon i {
    font-size: 24px;
    color: #212529;
}

.info-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    flex: 1;
}

/* Responsive */
@media (max-width: 991px) {
    .info-card {
        margin-bottom: 20px;
        height: auto;
    }
}

/* Mobilde kompakt görünüm: dikey boşlukları ve header boyutlarını küçült */
@media (max-width: 767px) {
    .about-info-section {
        padding: 18px 0;
    }

    /* Kartlar arası boşluk: g-4 gutter + margin-bottom üst üste binmesin */
    .about-info-container .row {
        --bs-gutter-y: 0.75rem;
    }

    .info-card {
        margin-bottom: 0;
        border-radius: 10px;
    }

    .info-card-header {
        padding: 14px 16px;
        gap: 12px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .info-icon i {
        font-size: 18px;
    }

    .info-card-title {
        font-size: 16px;
    }

    .info-card-toggle {
        width: 30px;
        height: 30px;
    }

    .info-card-toggle i {
        font-size: 14px;
    }

    .info-card-body {
        padding: 16px;
    }

    .info-card-footer {
        padding: 12px 16px;
    }
}