/* Ana Sayfa Stilleri — Kurumsal Tema */
:root {
    --red: #c0392b;
    --red-dark: #a93226;
    --red-light: #fadbd8;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --light: #f8f9fa;
    --white: #ffffff;
    --border: #e9ecef;
    --text: #2c3e50;
    --text-light: #6c757d;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 56px 0;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.hero h1 span {
    color: var(--red);
}

.hero p {
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .number {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--red);
}

.hero-stats .label {
    font-size: 0.88rem;
    opacity: 0.7;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========== AUCTION PREVIEW ========== */
.auction-preview {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--dark);
}

.live-badge {
    background: var(--red);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.77rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 1s infinite;
}

.auction-preview h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.auction-preview .price {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.countdown {
    background: var(--dark);
    color: var(--white);
    padding: 0.6rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 1rem;
}

.countdown .time {
    font-size: 1.32rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.coming-soon {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--dark);
}

.coming-soon i {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 0.75rem;
}

/* ========== SECTIONS ========== */
.auctions,
.packages {
    padding: 48px 0;
}

.auctions {
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.section-header p {
    font-size: 0.98rem;
    color: var(--text-light);
    margin: 0;
}

/* ========== GRID LAYOUTS ========== */
.auction-grid,
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ========== AUCTION CARDS ========== */
.auction-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auction-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-top {
    background: var(--dark);
    color: var(--white);
    padding: 0.65rem 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-top .live {
    background: var(--red);
    padding: 2px 11px;
    border-radius: 12px;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-top .id {
    font-size: 0.82rem;
    opacity: 0.6;
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.auction-card:hover .card-image img {
    transform: scale(1.03);
}

.no-image {
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gray-light);
}

.car-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 3px 11px;
    border-radius: 12px;
    font-size: 0.77rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 1.05rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    font-size: 1.04rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.65em;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.info {
    background: var(--light);
    padding: 0.65rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.info .label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info .price {
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--red);
}

.info .value {
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--text);
}

.countdown-small {
    background: var(--dark);
    color: var(--white);
    padding: 7px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.88rem;
}

.card-content > .btn:last-child {
    margin-top: auto;
}

/* ========== CARD IMAGE & TITLE LINKS ========== */
.card-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-title-link {
    text-decoration: none;
    color: inherit;
}

.card-title-link:hover h3 {
    color: var(--red);
}

/* ========== PACKAGE CARDS ========== */
.package-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.package-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-card .card-content p {
    font-size: 0.94rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.55em;
}

.discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: var(--white);
    padding: 3px 11px;
    border-radius: 12px;
    font-size: 0.77rem;
    font-weight: 600;
}

.price-info {
    margin-top: auto;
    margin-bottom: 1rem;
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: var(--gray-light);
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}

.price-info .price {
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--red);
}

/* ========== HOW IT WORKS ========== */
.how-works {
    background: var(--dark);
    color: var(--white);
    padding: 48px 0;
}

.how-works .section-header h2 {
    color: var(--white);
}

.how-works .section-header p {
    color: rgba(255,255,255,0.7);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.step {
    background: rgba(255,255,255,0.06);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
}

.step-number {
    position: absolute;
    top: -12px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--white);
}

.step i {
    font-size: 2.1rem;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    margin-bottom: 1rem;
    opacity: 0.8;
    font-size: 0.94rem;
    line-height: 1.5;
}

.step a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
}

.step a:hover {
    color: var(--white);
}

/* ========== STATS ========== */
.stats {
    background: var(--red);
    color: var(--white);
    padding: 32px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 1.98rem;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.stat-item .number {
    display: block;
    font-size: 1.98rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-item .label {
    font-size: 0.88rem;
    opacity: 0.85;
}

/* ========== CTA ========== */
.cta {
    background: var(--dark);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}

.cta-content {
    max-width: 520px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.cta p {
    font-size: 1.04rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========== HOMEPAGE BUTTONS ========== */
.hero .btn,
.auctions .btn,
.packages .btn,
.how-works .btn,
.cta .btn,
section .btn-red,
section .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.94rem;
    border: 1.5px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    line-height: 1.5;
}

.btn-red {
    background: var(--red);
    color: var(--white) !important;
    border-color: var(--red);
}

.btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

section .btn-outline,
.packages .btn-outline,
.auctions .btn-outline,
.cta .btn-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

section .btn-outline:hover,
.packages .btn-outline:hover,
.auctions .btn-outline:hover,
.cta .btn-outline:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-1px);
}

.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.w-100 {
    width: 100%;
}

/* ========== EMPTY STATES ========== */
.empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.empty h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 1.2rem;
}

.empty p {
    font-size: 0.94rem;
}

/* ========== ANIMATIONS ========== */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero {
        padding: 40px 0;
    }
    .hero h1 {
        font-size: 1.98rem;
    }
    .auction-grid,
    .package-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 32px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .auction-grid,
    .package-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 1.54rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .auctions,
    .packages,
    .how-works,
    .cta {
        padding: 36px 0;
    }

    .stats {
        padding: 24px 0;
    }

    .stat-item .number {
        font-size: 1.65rem;
    }

    .stat-item i {
        font-size: 1.65rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 24px 0;
    }

    .hero h1 {
        font-size: 1.54rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .info-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .card-image {
        height: 160px;
    }

    .card-content {
        padding: 0.75rem 1rem 1rem;
    }
}
