/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #f4f1eb;
    background: linear-gradient(135deg, #3A2317 0%, #2A1510 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #4A2C2A 0%, #2F1B14 100%);
    color: #f4f1eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.logo-image {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-link:hover .logo-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.footer-logo {
    height: 32px;
}

.footer-section .logo {
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2rem;
    color: #D4AF37;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.logo h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.signature {
    position: absolute;
    top: 60%;
    right: -80px;
    transform: translateY(-50%) rotate(-8deg);
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 1rem;
    color: #D4AF37;
    opacity: 0.8;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    pointer-events: none;
    font-style: italic;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #f4f1eb;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    transform: translateY(-2px);
}

.nav a.active {
    background: rgba(212, 175, 55, 0.3);
    color: #D4AF37;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

#updateIcon {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4A2C2A 0%, #2F1B14 100%);
    color: #f4f1eb;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #D4AF37;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Price Categories */
.price-categories {
    padding: 4rem 0 2rem 0;
    background: transparent;
}

.price-categories .container {
    background: linear-gradient(135deg, #4A2C2A 0%, #2F1B14 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 1px solid #4A2C2A;
}

.price-categories h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #D4AF37;
    font-weight: 600;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #2c1810;
    border: 2px solid #654321;
    color: #f4f1eb;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    background: #654321;
    color: #D4AF37;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: #D4AF37;
    border-color: #D4AF37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #654321;
    border-radius: 50px;
    font-size: 1rem;
    background: #2c1810;
    color: #f4f1eb;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-box input::placeholder {
    color: #a0856b;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #2c1810;
    border: 2px solid #654321;
    color: #f4f1eb;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #654321;
    color: #D4AF37;
}

.view-btn.active {
    background: #8B4513;
    color: #D4AF37;
    border-color: #D4AF37;
}

/* Price Table Section */
.price-table-section {
    padding: 2rem 0 4rem;
    background: transparent;
}

.price-table-section .container {
    background: linear-gradient(135deg, #4A2C2A 0%, #2F1B14 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 1px solid #4A2C2A;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 600px;
}

.about-image {
    position: relative;
}

.about-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 3px solid #D4AF37;
}

.about-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-color: #F4D03F;
}

.about-text {
    padding-left: 2rem;
}

.about-text h2 {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border-radius: 2px;
}

.about-text .subtitle {
    font-size: 1.3rem;
    color: #B8941F;
    margin-bottom: 2rem;
    font-weight: 500;
    font-style: italic;
    opacity: 0.9;
}

.about-description h4 {
    font-size: 1.4rem;
    color: #D4AF37;
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.about-description h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border-radius: 2px;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #f4f1eb;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(74, 44, 42, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(74, 44, 42, 0.5);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateX(10px);
}

.feature i {
    color: #D4AF37;
    font-size: 1.5rem;
    margin-top: 0.2rem;
    min-width: 24px;
}

.feature h4 {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature p {
    color: #f4f1eb;
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for About Section */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        padding-left: 0;
        text-align: center;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-photo {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }
    
    .about-text h2 {
        font-size: 2.5rem;
    }
    
    .about-description p {
        font-size: 1rem;
    }
    
    .about-photo {
        height: 300px;
    }
}

/* Contact Section - Simplified for Google Maps */
.contact-section {
    padding: 6rem 0;
    background: transparent;
}

.contact-section h2 {
    text-align: center;
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border-radius: 2px;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
}

.google-maps {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 3px solid #D4AF37;
}

.google-maps:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-color: #F4D03F;
}

.google-maps iframe {
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 17px;
    display: block;
}

/* Responsive Design for Contact Section */
@media (max-width: 968px) {
    .contact-section h2 {
        font-size: 2.5rem;
    }
    
    .google-maps iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .google-maps iframe {
        height: 350px;
    }
}

/* Loading State - Deaktif */
.loading {
    display: none !important;
    text-align: center;
    padding: 4rem 0;
}

.loading-spinner {
    display: none;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Error State */
.error {
    text-align: center;
    padding: 4rem 0;
    color: #dc3545;
}

.error i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Price Table */
.price-table-container {
    overflow-x: auto;
    background: #2A1510;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.price-table th {
    background: #3A1F1A;
    color: #D4AF37;
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #D4AF37;
}

.price-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #654321;
    transition: all 0.3s ease;
    color: #f4f1eb;
}

.price-table tbody tr:hover {
    background: #3A1F1A;
    transform: scale(1.01);
}

.product-name {
    font-weight: 600;
    color: #f4f1eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-code {
    background: #654321;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #D4AF37;
}

.price {
    font-weight: 600;
    font-size: 1.1rem;
}

.price.buy {
    color: #28a745;
}

.price.sell {
    color: #dc3545;
}

.change {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}

.change.positive {
    color: #28a745;
}

.change.negative {
    color: #dc3545;
}

.change.neutral {
    color: #6c757d;
}

.change i {
    font-size: 0.8rem;
}

.update-time {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Price Grid */
.price-grid {
    display: block;
    gap: 2rem;
}

/* Category Headers */
.category-header {
    margin: 2rem 0 1rem 0;
}

.category-header:first-child {
    margin-top: 0;
}

.category-header h3 {
    color: #D4AF37;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37 0%, transparent 100%);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.price-card {
    background: #2A1510;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    border-left: 4px solid #D4AF37;
    border: 1px solid #654321;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.card-prices {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-price {
    text-align: center;
}

.card-price-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
}

.card-price-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2F1B14 0%, #1A0E0A 100%);
    color: #f4f1eb;
    padding: 2rem 0 1rem;
    border-top: 1px solid #4A2C2A;
}

.footer-logo-section {
    margin-bottom: 2rem;
    text-align: left;
}

.footer-logo-section .logo {
    margin-bottom: 1rem;
}

.footer-logo-section .footer-logo {
    height: 50px;
}

.footer-logo-section p {
    font-size: 1rem;
    color: #f4f1eb;
    opacity: 0.9;
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.footer-left {
    justify-self: start;
}

.footer-right {
    justify-self: end;
    text-align: right;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #D4AF37;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}

.footer-right .contact-info {
    text-align: right;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #f4f1eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #D4AF37;
}

.contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.5;
    justify-content: flex-end;
}

.contact-info i {
    color: #D4AF37;
    width: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-info a {
    color: #f4f1eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #D4AF37;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #4A2C2A;
    color: #f4f1eb;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .signature {
        right: -70px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }
    
    .logo-image {
        height: 50px;
        max-width: 150px;
    }
    
    .footer-logo {
        height: 30px;
    }
    
    .signature {
        font-size: 0.8rem;
        right: -60px;
    }

    .footer-logo-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-left,
    .footer-right {
        justify-self: center;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-right .contact-info {
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
}

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .category-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .price-table {
        font-size: 0.85rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.75rem 0.5rem;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .stat {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}
