/* 
   Gemstone Certificate Ultimate - Premium Styles
   Brand: Elite Gold & Midnight
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --gcu-gold: #d4af37;
    --gcu-gold-bright: #f1c40f;
    --gcu-gold-dark: #b8860b;
    --gcu-midnight: #0a0a0a;
    --gcu-dark-gray: #1a1a1a;
    --gcu-text-light: #e0e0e0;
    --gcu-text-muted: #a0a0a0;
    --gcu-white: #ffffff;
    --gcu-radius: 12px;
    --gcu-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}



/* Base Interface (Verification Page) */
.gcu-verify-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 40px 20px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.gcu-verify-container {
    max-width: 500px;
    width: 100%;
    background: #ffffff;
    padding: 60px 40px;
    border-radius: var(--gcu-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.gcu-luxury-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gcu-gold), var(--gcu-gold-dark));
    color: #000;
    padding: 6px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    border-radius: 50px;
}

.gcu-verify-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gcu-gold);
    margin-bottom: 15px;
}

.gcu-a4-scan-instruction {
    font-size: 9px;
    color: #666;
}

.gcu-verify-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.gcu-verify-form .gcu-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gcu-verify-input {
    background: #f9f9f9;
    border: 2px solid #ddd;
    padding: 15px 20px;
    border-radius: 8px;
    color: #333;
    font-size: 16px;
    transition: 0.3s;
}

.gcu-verify-input:focus {
    border-color: var(--gcu-gold);
    outline: none;
    background: #fff;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.gcu-verify-submit-btn {
    background: linear-gradient(135deg, var(--gcu-gold), var(--gcu-gold-dark));
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.gcu-verify-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.gcu-error-msg {
    margin-top: 20px;
    color: #ff4d4d;
    font-size: 13px;
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.gcu-trust-indicators {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 11px;
    color: #888;
    border-top: 1px solid #e0e0e0;
    padding-top: 25px;
}

.gcu-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Preview Wrapper */
.gcu-preview-wrapper {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Montserrat', sans-serif;
}

.gcu-preview-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    align-items: center;
}

.gcu-tab-link {
    padding: 10px 25px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 10px;
    font-size: 13px;
    transition: 0.3s;
}

.gcu-tab-link.active {
    background: var(--gcu-midnight);
    color: var(--gcu-gold);
}

.gcu-print-btn {
    padding: 12px 30px;
    background: var(--gcu-gold);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.gcu-action-btns {
    display: flex;
    gap: 15px;
}

.gcu-download-btn {
    padding: 12px 25px;
    background: #222;
    color: var(--gcu-gold);
    border: 1px solid var(--gcu-gold);
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.gcu-download-btn:hover {
    background: var(--gcu-gold);
    color: #000;
}

.gcu-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Overlay */
.gcu-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gcu-loading-overlay.active {
    display: flex;
}

.gcu-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.gcu-view-a4,
.gcu-view-card {
    display: none !important;
}

.gcu-view-a4.active,
.gcu-view-card.active {
    display: block !important;
}

/* A4 Certificate - Match index-a4.html Exactly */
.gcu-view-a4 {
    display: flex;
    justify-content: center;
    background: #f2f2f2;
    padding: 10mm 0;
}

.gcu-a4-page {
    width: 210mm;
    height: 297mm;
    background: #ffffff;
    border: 1px solid #000;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20mm 25mm !important;
    overflow: hidden;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif !important;
    color: #333;
    box-sizing: border-box;
    text-align: left;
}

.gcu-a4-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.gcu-a4-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gcu-verify-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    opacity: 0.6;
}

.gcu-a4-header {
    text-align: center;
    margin-bottom: 25px;
}

.gcu-a4-logo-box {
    display: inline-block;
    margin-bottom: 5px;
    width: 80px;
    height: 80px;
}

.gcu-a4-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gcu-a4-lab-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 26px;
    color: #000;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 5px 0 10px;
    text-transform: uppercase;
}

.gcu-a4-report-label {
    font-size: 16px;
    color: #d4af37;
    font-weight: 700;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 2px;
    margin-bottom: 20px;
    display: inline-block;
}

.gcu-a4-details {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #bbbbbb;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.gcu-a4-details div,
.gcu-a4-detail-row {
    font-size: 11px;
    color: #666666;
}

.gcu-a4-details strong {
    font-size: 14px;
    color: #333333;
    display: block;
}

.gcu-a4-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    flex-grow: 1;
}

.gcu-a4-props {
    border-right: 1px solid #bbbbbb;
    padding-right: 30px;
}

.gcu-a4-section-title {
    font-size: 18px;
    font-family: 'Playfair Display', serif !important;
    color: #000000;
    margin-bottom: 15px;
    border-left: 5px solid #d4af37;
    padding-left: 10px;
}

.gcu-a4-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 25px;
}

.gcu-a4-prop-item {
    font-size: 12px;
    line-height: 1.4;
}

.gcu-a4-prop-label {
    font-weight: 700;
    color: #000000;
    margin-bottom: 3px;
    display: block;
}

.gcu-a4-prop-value {
    color: #333333;
}

.gcu-a4-remark-box {
    grid-column: 1 / -1;
    margin-top: 15px;
    border-top: 1px dashed #bbbbbb;
    padding-top: 15px;
    font-size: 11px;
    color: #333333;
}

.gcu-a4-remark-label {
    font-weight: 700;
    color: #000000;
    margin-bottom: 5px;
}



.gcu-a4-visual-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gcu-a4-gem-frame {
    width: 150px;
    height: 150px;
    border: 4px solid #d4af37;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
    background: #f9f9f9;
}

.gcu-a4-gem-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gcu-a4-qr-section {
    text-align: center;
}

.gcu-a4-qr-box {
    width: 100px;
    height: 100px;
    border: 1px solid #bbbbbb;
    padding: 5px;
    margin: 0 auto 5px;
    background: #fff;
}

.gcu-a4-qr-box img {
    width: 100%;
    height: 100% !important;
}

.gcu-a4-id-tag {
    font-weight: 900;
    color: #b22222;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gcu-a4-footer {
    margin-top: 35px;
    border-top: 3px double #000000;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gcu-a4-terms {
    width: 65%;
    font-size: 10px;
    color: #333333;
    line-height: 1.6;
}

.gcu-a4-terms-title {
    color: #000000;
    font-size: 11px;
    text-transform: uppercase;
}

.gcu-a4-hindi {
    font-weight: 700;
    color: #000000;
    font-size: 14px;
    margin: 12px 0 6px;
    border-left: 4px solid #d4af37;
    padding-left: 10px;
}

.gcu-a4-methodology {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eeeeee;
}

.gcu-a4-auth {
    text-align: center;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gcu-a4-sig {
    width: 150px;
    height: 65px;
    border-bottom: 1px solid #000000;
    margin-bottom: 10px;
    object-fit: contain;
}

.gcu-a4-auth-name {
    font-size: 13px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.gcu-a4-auth-role {
    font-size: 10px;
    color: #666;
    letter-spacing: 0.5px;
}



/* ========================================
   MOBILE & TABLET RESPONSIVE STYLES
   ======================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .gcu-preview-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .gcu-tabs {
        display: flex;
        justify-content: center;
    }

    .gcu-action-btns {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile devices */
@media (max-width: 768px) {

    /* Horizontal scroll container for certificates */
    .gcu-certificate-display {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        background: #f5f5f5;
        border-radius: 8px;
        display: flex;
        justify-content: flex-start;
    }

    /* Keep A4 at exact size - scroll to view */
    .gcu-a4-page {
        min-width: 210mm;
        width: 210mm;
        height: 297mm;
        margin: 0 auto;
        transform: none;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    

    /* Wrapper adjustments */
    .gcu-preview-wrapper {
        max-width: 100%;
        margin: 20px auto;
        padding: 0 10px;
    }

    /* Responsive controls */
    .gcu-tabs a {
        padding: 8px 15px;
        font-size: 12px;
        margin-right: 5px;
    }

    .gcu-download-btn {
        padding: 10px 15px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Verify page mobile */
    .gcu-verify-page {
        padding: 20px 10px;
    }

    .gcu-verify-container {
        padding: 40px 20px;
    }

    .gcu-verify-container h1 {
        font-size: 2rem;
    }

    .gcu-trust-indicators {
        flex-direction: column;
        gap: 10px;
    }

}

/* Extra small screens */
@media (max-width: 480px) {
    .gcu-tabs a {
        padding: 8px 12px;
        font-size: 11px;
        margin-right: 3px;
    }

    .gcu-download-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .gcu-verify-container h1 {
        font-size: 1.5rem;
    }

    .gcu-subtitle {
        font-size: 13px;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .gcu-certificate-display {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gcu-a4-page {
        min-width: 210mm;
        margin: 0 auto;
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .gcu-a4-page {
        width: 100%;
        padding: 5mm;
        transform: scale(0.9);
        transform-origin: top center;
    }

    .gcu-content-grid {
        grid-template-columns: 1fr;
    }
}