﻿
:root {
    --primary-color: #1f2937;
    --secondary-color: #374151;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    background-image: url(../images/banner2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.close-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

    .close-btn:hover {
        opacity: 1;
        transform: scale(1.1);
    }

.main-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    padding: 1rem;
    margin: 0 auto;
    min-height: 100vh;
}

.gold-section {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.announcements-section {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    padding: 0.1rem;
    flex: 1;
    overflow-y: auto;
}

.status-info {
    background: var(--bg-tertiary);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.3rem;
    text-align: left;
    font-weight: bold;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Inter';
    border: 2px solid white;
    width: 100px;
}

    td:first-child {
        font-weight: bold;
        color: black;
        font-size: 25px;
        background: #fadd8e;
        font-family: 'Inter';
        width: 130px;
    }

.price-cell {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.bid-price {
    color: black;
    background: #f7ce5e;
    transition: background-color 0.2s ease;
}

.ask-price {
    color: white;
    background: #d38d2b;
    transition: background-color 0.2s ease;
}

.announcement-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

    .announcement-item:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }

    .announcement-item:last-child {
        margin-bottom: 0;
    }

.announcement-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.announcement-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.announcement-date {
    color: var(--text-light);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.loading,
.error {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

    .loading i,
    .error i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        display: block;
    }

.error {
    color: var(--error-color);
}

.no-announcements {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

    .no-announcements i {
        font-size: 2rem;
        margin-bottom: 1rem;
        display: block;
        opacity: 0.5;
    }

.prod-text {
    font-size: 0.7rem;
    font-weight: normal;
    color: var(--text-light);
}
.has-price-display {
    background: linear-gradient(135deg, #d38d2b, #d38d2b);
    color: white;
    padding: 1rem;
    margin: 0 1.5rem 1rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
    margin-top: 5px;
}

.has-price-title {
    font-size: 25px;
    margin-bottom: 0.5rem;
}

.has-prices {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.has-price-item {
    flex: 1;
    text-align: center;
}

.has-price-label {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.has-price-value {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.price-trend {
    font-size: 14px;
    opacity: 1;
    background: white;
    padding: 5px;
    border-radius: 10px;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

.trend-stand {
    color: #b7b7b7;
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 0.5rem;
        gap: 1rem;
    }

    .announcements-section {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0.75rem;
    }

    .section-header {
        padding: 1rem;
        font-size: 1rem;
    }

    .section-content {
        padding: 1rem;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem !important;
    }

    .announcement-item {
        padding: 0.875rem;
    }

    .announcement-title {
        font-size: 0.85rem;
    }

    .announcement-description {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 1366px) and (max-height: 728px) {

    td:first-child {
        font-size: 22px;
    }

    td {
        padding: 0.5rem;
        font-size: 22px;
    }
}

@media screen and (max-width: 1280px) and (max-height: 800px) {

    td:first-child {
        font-size: 22px;
    }

    td {
        padding: 0.7rem;
        font-size: 22px;
    }
}

@media screen and (max-width: 1024px) and (max-height: 720px) {

    td:first-child {
        font-size: 22px;
    }

    td {
        padding: 0.5rem;
        font-size: 22px;
    }
}

@media screen and (max-width: 1240px) and (max-height: 660px) {

    td:first-child {
        font-size: 21px;
    }

    td {
        padding: 0.4rem;
        font-size: 21px;
    }
}

@media screen and (max-width: 1000px) {

    td:first-child {
        font-size: 18px;
    }

    td {
        padding: 0.3rem;
        font-size: 18px;
    }
}
