/**
 * GamsGo Reseller - Frontend Styles
 */

/* Theme Tokens */
:root {
    --gamsgo-primary: #667eea;
    --gamsgo-primary-2: #764ba2;
    --gamsgo-primary-strong: #5b6fe3;
    --gamsgo-surface: #ffffff;
    --gamsgo-surface-muted: #f7f9fc;
    --gamsgo-border: #e6e9f2;
    --gamsgo-text: #2d2f33;
    --gamsgo-muted: #6b7280;
    --gamsgo-shadow: 0 12px 32px rgba(102, 126, 234, 0.12);
    --gamsgo-radius: 14px;
}

/* Container */
/* Container */
.gamsgo-verify-container {
    width: 98%;
    max-width: 1100px;
    /* Wider desktop layout */
    margin: 40px auto;
    padding: 10px;
    /* Reduced outer padding */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* STRICT ICON SIZING - Target all potential WP emoji replacements */
/* STRICT ICON SIZING - Target all potential WP emoji replacements */
.gamsgo-verify-container img.emoji,
.gamsgo-verify-container img.icon,
.gamsgo-verify-container svg,
.gamsgo-logo-icon img,
.gamsgo-verification-title img,
.gamsgo-refresh-btn img,
.gamsgo-logout-btn img,
.gamsgo-actions .gamsgo-btn-icon img {
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.1em !important;
    vertical-align: middle !important;
    max-width: 24px !important;
    max-height: 24px !important;
    box-shadow: none !important;
    display: inline-block !important;
    border: none !important;
    background: none !important;
    opacity: 1 !important;
}

.gamsgo-logo-icon img {
    max-width: 48px !important;
    max-height: 48px !important;
    font-size: 48px;
    height: 1em !important;
    width: 1em !important;
}

/* Card */
.gamsgo-card {
    background: var(--gamsgo-surface);
    border-radius: var(--gamsgo-radius);
    border: 1px solid var(--gamsgo-border);
    box-shadow: var(--gamsgo-shadow);
    padding: 40px;
    box-sizing: border-box;
}

/* Mobile Responsiveness for Card */
@media screen and (max-width: 480px) {
    .gamsgo-card {
        padding: 20px;
        /* Reduced padding on mobile */
    }

    .gamsgo-verify-container {
        margin: 20px auto;
    }

    .gamsgo-logo-icon {
        font-size: 36px;
        /* Smaller logo on mobile */
    }
}

/* Logo */
.gamsgo-logo {
    text-align: center;
    margin-bottom: 30px;
}

.gamsgo-logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.gamsgo-logo h2 {
    font-size: 24px;
    color: var(--gamsgo-text);
    margin: 0 0 8px;
}

.gamsgo-logo p {
    color: var(--gamsgo-muted);
    font-size: 14px;
    margin: 0;
}

/* Form */
.gamsgo-form-group {
    margin-bottom: 20px;
}

.gamsgo-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
    font-weight: 500;
}

.gamsgo-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gamsgo-border);
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.gamsgo-form-group input:focus {
    outline: none;
    border-color: var(--gamsgo-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

/* Buttons */
.gamsgo-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gamsgo-primary) 0%, var(--gamsgo-primary-2) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.25);
}

.gamsgo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.35);
}

.gamsgo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.gamsgo-error {
    background: #fee;
    color: #c00;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.gamsgo-success {
    background: #efe;
    color: #060;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Subscription Panel */
.gamsgo-subscription-panel {
    display: none;
}

.gamsgo-subscription-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gamsgo-border);
}

.gamsgo-subscription-header h2 {
    color: var(--gamsgo-text);
    margin: 0 0 8px;
}

.gamsgo-status {
    display: inline-block;
    padding: 4px 12px;
    background: #4caf50;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Info Rows */
.gamsgo-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eef0f6;
}

.gamsgo-info-row:last-of-type {
    border-bottom: none;
}

.gamsgo-label {
    color: var(--gamsgo-muted);
    font-size: 14px;
}

.gamsgo-value {
    color: var(--gamsgo-text);
    font-weight: 500;
    font-family: monospace;
    font-size: 14px;
}

.gamsgo-value-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gamsgo-blur {
    color: transparent;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    cursor: pointer;
    user-select: none;
}

.gamsgo-blur:hover {
    color: #333;
    text-shadow: none;
}

.gamsgo-copy-btn {
    background: #f4f6fb;
    border: 1px solid #e4e9f4;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.gamsgo-copy-btn:hover {
    background: #e8eef8;
}

/* Verification Section Redesign */
.gamsgo-verification-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--gamsgo-surface-muted);
    border-radius: 12px;
    border: 1px solid var(--gamsgo-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.gamsgo-verification-left {
    flex: 1;
    z-index: 1;
}

.gamsgo-verification-right {
    font-size: 64px;
    opacity: 0.2;
    transform: rotate(15deg);
    pointer-events: none;
    margin-left: 20px;
}

.gamsgo-verification-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gamsgo-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gamsgo-verification-desc {
    font-size: 13px;
    color: #4a5565;
    margin-bottom: 16px;
    line-height: 1.5;
    max-width: 90%;
}

/* Verification Button */
/* Verification Button */
.gamsgo-get-link-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 42px;
    padding: 10px 30px !important;
    background: linear-gradient(135deg, var(--gamsgo-primary) 0%, var(--gamsgo-primary-2) 100%);
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    /* ABSOLUTELY NO WRAPPING */
    white-space: nowrap !important;
    text-align: center;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.gamsgo-get-link-btn:hover {
    background: linear-gradient(135deg, var(--gamsgo-primary-strong) 0%, #6b4196 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

/* Verification Result - Prominent Code Display */
.gamsgo-verification-result {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border: none;
}

.gamsgo-verification-result.gamsgo-code-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gamsgo-code-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gamsgo-code-value {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    letter-spacing: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
    user-select: all;
}

.gamsgo-code-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.gamsgo-code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.gamsgo-code-copy-btn.copied {
    background: rgba(76, 175, 80, 0.8);
    border-color: rgba(76, 175, 80, 0.9);
}

/* Link display style */
.gamsgo-verification-result.gamsgo-link-display {
    background: white;
    border: 1px dashed #d6dcf0;
    border-radius: 8px;
    padding: 14px;
}

.gamsgo-verification-result.gamsgo-link-display a {
    color: var(--gamsgo-primary);
    font-size: 14px;
    word-break: break-all;
}

/* Mobile optimization for code */
@media (max-width: 768px) {
    .gamsgo-code-value {
        font-size: 32px;
        letter-spacing: 6px;
    }

    .gamsgo-verification-result.gamsgo-code-display {
        padding: 20px 16px;
    }
}

/* Action Buttons Redesign */
.gamsgo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    /* reduced gap */
    margin-top: 24px;
}

.gamsgo-refresh-btn,
.gamsgo-logout-btn {
    width: 100%;
    padding: 10px 16px;
    /* slightly reduced padding */
    background: #fff;
    color: var(--gamsgo-text);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 42px;
    /* Fix height for alignment */
}

.gamsgo-refresh-btn:hover,
.gamsgo-logout-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.gamsgo-actions .gamsgo-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    /* Ensure icon color matches text or is muted */
    opacity: 0.8;
}

/* Promo Text */
.gamsgo-promo {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--gamsgo-muted);
    line-height: 1.6;
}

.gamsgo-promo a {
    color: var(--gamsgo-primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.gamsgo-promo a:hover {
    text-decoration: underline;
}

/* Update Mobile Responsive */
@media (max-width: 768px) {
    .gamsgo-verify-container {
        width: 100% !important;
        margin: 5px 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .gamsgo-card {
        padding: 20px 15px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    .gamsgo-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .gamsgo-value-wrapper {
        width: 100%;
        justify-content: space-between;
        background: #f9fafb;
        padding: 10px;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .gamsgo-verification-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .gamsgo-verification-right {
        display: none;
        /* Hide icon on mobile space */
    }

    .gamsgo-verification-desc {
        max-width: 100%;
    }

    .gamsgo-actions {
        grid-template-columns: 1fr;
    }
}