/**
 * Custom Styles for Golden Numbers
 * Additional customizations beyond main stylesheet
 */

/* Single Number Page */
.gn-single-number {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
}

.gn-single-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gn-badge-single {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gn-network-badge-single {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gn-mobile-number-single {
    font-family: 'Arial', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    color: #F5F5F5;
    white-space: nowrap;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gn-price-single {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #C9A227;
    margin-bottom: 1.5rem;
}

.gn-status-single {
    margin-bottom: 2rem;
}

.gn-single-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gn-btn-large {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

.gn-related-section {
    background: linear-gradient(180deg, #0D0D0D, #1a1a1a);
    border-top: 1px solid rgba(201, 162, 39, 0.1);
}

/* Archive Page */
.archive .gn-section-header {
    padding-top: 2rem;
}

/* Network Archive */
.tax-network .gn-section-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Enhanced Card Hover Effects */
.gn-product-card {
    position: relative;
    overflow: hidden;
}

.gn-product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.gn-product-card:hover::after {
    border-color: rgba(201, 162, 39, 0.5);
}

/* Gold Shimmer Animation */
@keyframes goldShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.gn-product-card .gn-card-header {
    position: relative;
    overflow: hidden;
}

.gn-product-card .gn-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 162, 39, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.gn-product-card:hover .gn-card-header::before {
    left: 100%;
}

/* Loading Animation */
.gn-loading {
    position: relative;
    min-height: 300px;
}

.gn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid rgba(201, 162, 39, 0.2);
    border-top-color: #C9A227;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Button Styles */
.gn-btn {
    position: relative;
    overflow: hidden;
}

.gn-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.4s ease;
}

.gn-btn:hover::before {
    left: 100%;
}

/* Filter Bar Enhancements */
.gn-filter-bar {
    position: sticky;
    top: 82px;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Scroll to Top Button */
.gn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #C9A227, #E5C100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.gn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.gn-scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.gn-scroll-top svg {
    width: 24px;
    height: 24px;
    fill: #0D0D0D;
}

/* Enhanced Mobile Menu */
.gn-nav.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gn-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.gn-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.gn-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* No Results Enhancement */
.gn-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 12px;
    border: 1px dashed rgba(201, 162, 39, 0.3);
}

.gn-no-results svg {
    width: 80px;
    height: 80px;
    fill: rgba(201, 162, 39, 0.3);
    margin-bottom: 1.5rem;
}

.gn-no-results h3 {
    color: #F5F5F5;
    margin-bottom: 1rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .gn-single-actions {
        flex-direction: column;
    }
    
    .gn-btn-large {
        width: 100%;
    }
    
    .gn-filter-bar {
        position: relative;
        top: 0;
    }
    
    .gn-scroll-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}

/* Print Styles */
@media print {
    .gn-header,
    .gn-footer,
    .gn-filter-bar,
    .gn-single-actions,
    .gn-scroll-top {
        display: none !important;
    }
    
    .gn-single-number {
        padding: 2rem;
    }
    
    .gn-mobile-number-single {
        font-size: 2rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .gn-product-card {
        border: 2px solid #C9A227;
    }
    
    .gn-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 404 Error Page */
.gn-error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gn-error-content {
    max-width: 600px;
    padding: 2rem;
}

.gn-error-icon {
    margin-bottom: 1.5rem;
}

.gn-error-icon svg {
    width: 100px;
    height: 100px;
    fill: rgba(201, 162, 39, 0.5);
}

.gn-error-404 h1 {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 700;
    color: #C9A227;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 30px rgba(201, 162, 39, 0.3);
}

.gn-error-404 h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

.gn-error-404 p {
    color: #BFBFBF;
    margin-bottom: 2rem;
}

.gn-error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Network Icon */
.gn-network-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.2);
}

.gn-network-jazz .gn-network-icon { background: rgba(237, 28, 36, 0.3); }
.gn-network-telenor .gn-network-icon { background: rgba(0, 153, 204, 0.3); }
.gn-network-ufone .gn-network-icon { background: rgba(255, 102, 0, 0.3); }
.gn-network-zong .gn-network-icon { background: rgba(0, 153, 0, 0.3); }
.gn-network-warid .gn-network-icon { background: rgba(102, 0, 153, 0.3); }
