/* 농산물 실시간 경매가격 페이지 전용 스타일 */

/* 기본 설정 */
* {
    box-sizing: border-box;
}

/* 히어로 섹션 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        gap: 120px;
        padding: 0 40px;
    }
}

.hero-text {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}

.auction-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.auction-title-highlight {
    background: linear-gradient(90deg, #05b981 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .auction-title {
        font-size: 55px;
        line-height: 1.25;
    }
}

@media (min-width: 1024px) {
    .auction-title {
        font-size: 75px;
        line-height: 1.2;
    }
}

.auction-subtitle {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .auction-subtitle {
        font-size: 24px;
        margin-left: 0;
        margin-right: 0;
    }
}

.auction-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .auction-buttons {
        justify-content: flex-start;
    }
}

.auction-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-price-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    min-width: 300px;
    max-width: 400px;
    width: 100%;
}

.price-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.price-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-card-content .loading-message {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
    animation: pulse 1.5s ease-in-out infinite;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.price-item:last-child {
    border-bottom: none;
}

.crop-name {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: #05b981;
}

/* 기능 섹션 */
.auction-features-section {
    padding: 100px 20px;
    background: white;
}

.auction-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .auction-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .auction-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.auction-feature-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.auction-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auction-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #05b981 0%, #10b981 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.auction-feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.auction-feature-card p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* 필터 섹션 */
.filter-section {
    padding: 60px 20px;
    background: #fff;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .filter-controls {
        flex-direction: row;
        align-items: flex-end;
    }
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.filter-select,
.filter-input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #1f2937;
    transition: all 0.2s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #05b981;
    box-shadow: 0 0 0 3px rgba(5, 185, 129, 0.1);
}

.filter-input {
    width: 100%;
}

/* 가격 테이블 섹션 */
.price-table-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 16px;
}

.update-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
}

.loading-indicator .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    padding-bottom: 100px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.price-table thead {
    background: #f9fafb;
}

.price-table th {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.price-table td {
    padding: 16px;
    font-size: 14px;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

.price-table tbody tr {
    transition: background-color 0.2s ease;
}

.price-table tbody tr:hover {
    background-color: #f9fafb;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

/* 점진적 페이드 효과 */
.fade-in-row {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 테이블 그라데이션 오버레이 (점진적 그림자 효과) */
.table-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 20%,
            rgba(255, 255, 255, 0.6) 40%,
            rgba(255, 255, 255, 0.85) 60%,
            rgba(255, 255, 255, 0.95) 80%,
            rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 앱 CTA 버튼 */
.app-cta-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.app-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.app-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.app-cta-button:active {
    transform: translateY(0);
}

.app-cta-button svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .table-wrapper {
        padding-bottom: 90px;
    }

    .table-gradient-overlay {
        height: 120px;
    }

    .app-cta-wrapper {
        bottom: 15px;
    }

    .app-cta-button {
        padding: 14px 24px;
        font-size: 14px;
        gap: 10px;
    }
}

.price-value {
    font-weight: 600;
    color: #1f2937;
}

.price-change {
    font-weight: 600;
}

.price-change.up {
    color: #ef4444;
}

.price-change.down {
    color: #3b82f6;
}

.price-change:not(.up):not(.down) {
    color: #6b7280;
}

.loading-message,
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

.loading-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner-wrapper .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-message {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* 통계 섹션 */
.stats-section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 55px;
    }
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.realtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.realtime-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 16px;
    }

    .realtime-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    color: #05b981;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #6b7280;
}

/* 반응형 디자인 */
@media (max-width: 767px) {
    .auction-title {
        font-size: 36px;
    }

    .auction-subtitle {
        font-size: 18px;
    }

    .table-wrapper {
        font-size: 12px;
    }

    .price-table th,
    .price-table td {
        padding: 12px 8px;
    }
}