/* Style for FakeXY Clone - Premium Aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #090b11;
    --bg-card: #131622;
    --bg-card-hover: #181c2c;
    --bg-header: rgba(13, 16, 27, 0.85);
    --border-color: #23283e;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-glow: rgba(99, 102, 241, 0.15);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
}

nav ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

nav ul li a.active {
    border-bottom: 2px solid var(--accent-indigo);
    border-radius: 8px 8px 0 0;
    background-color: rgba(99, 102, 241, 0.05);
}

/* Hamburger menu for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

/* Ad slots */
.ad-slot {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 50px;
    transition: all 0.3s ease;
}

.ad-slot.banner-728 {
    max-width: 728px;
    width: 100%;
    height: 90px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-slot.banner-728:has(.ad-slot-placeholder) {
    height: 50px;
}

@media (max-width: 768px) {
    .ad-slot.banner-728:not(:has(.ad-slot-placeholder)) {
        width: 728px;
        max-width: none;
        transform: scale(var(--mobile-ad-scale, 1));
        transform-origin: center center;
        margin: 10px auto;
        height: calc(90px * var(--mobile-ad-scale, 1));
    }
}

.ad-slot.sidebar-300 {
    width: 300px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
}

.ad-slot-placeholder {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Grid Layout */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* General Layout Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero / Top section for generator configurations */
.generator-control {
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 60%), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.generator-control h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.generator-control p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.control-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 180px;
}

.field-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-control {
    width: 100%;
    background-color: rgba(9, 11, 17, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-control:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.primary-btn {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    height: 48px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Identity grid */
.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.identity-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: background-color 0.2s ease;
}

.data-row:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.data-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 120px;
}

.data-value-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
    max-width: calc(100% - 130px);
    flex: 1;
}

.data-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-line;
}

.copy-btn, .action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-btn:hover, .action-btn:hover {
    color: var(--accent-indigo);
    background-color: rgba(99, 102, 241, 0.1);
}

/* List/Table view generator styles */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background-color: rgba(255, 255, 255, 0.02);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

.cell-copyable {
    cursor: pointer;
    transition: color 0.15s ease;
    font-weight: 500;
}

.cell-copyable:hover {
    color: var(--accent-indigo);
    text-decoration: underline dotted;
}

.table-link {
    color: var(--accent-indigo);
    font-weight: 600;
    transition: all 0.15s ease;
}

.table-link:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.font-mono {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Badges for tables */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.male {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge.female {
    background-color: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.badge.visa {
    background-color: rgba(26, 77, 161, 0.2);
    color: #1a4da1;
    border: 1px solid rgba(26, 77, 161, 0.4);
}

.badge.mastercard {
    background-color: rgba(235, 0, 27, 0.15);
    color: #eb001b;
    border: 1px solid rgba(235, 0, 27, 0.3);
}

.badge.amex {
    background-color: rgba(0, 112, 220, 0.15);
    color: #0070dc;
    border: 1px solid rgba(0, 112, 220, 0.3);
}

.badge.discover {
    background-color: rgba(255, 96, 0, 0.15);
    color: #ff6000;
    border: 1px solid rgba(255, 96, 0, 0.3);
}

.badge.gray {
    background-color: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

/* Flash and Success indications */
.flash-effect {
    animation: flash 0.5s ease-out;
}

@keyframes flash {
    0% { background-color: rgba(99, 102, 241, 0.4); border-radius: 4px; }
    100% { background-color: transparent; }
}

/* Toast System */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background-color: var(--bg-card);
    border: 1px solid var(--accent-indigo);
    box-shadow: var(--shadow-lg), 0 0 10px rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-check {
    color: var(--success-color);
}

/* Sidebar navigation links */
.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.sidebar-links li a:hover {
    color: var(--text-primary);
    background-color: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.sidebar-links li a svg {
    color: var(--accent-indigo);
}

/* Footer styling */
footer.global-footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(13, 16, 27, 0.5);
    padding: 40px 0;
    margin-top: 60px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Admin Dashboard CSS Styles */
.admin-wrapper {
    max-width: 800px;
    margin: 40px auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-input {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.admin-input:focus {
    border-color: var(--accent-indigo);
}

.admin-textarea {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Courier New', Courier, monospace;
    min-height: 120px;
    outline: none;
    resize: vertical;
}

.admin-textarea:focus {
    border-color: var(--accent-indigo);
}

.admin-file-upload {
    background-color: var(--bg-main);
    border: 1px dashed var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-file-upload:hover {
    border-color: var(--accent-indigo);
}

.admin-alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.95rem;
}

.admin-alert.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-alert.danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Login styling */
.login-card {
    max-width: 400px;
    margin: 100px auto;
}

/* Responsive queries */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ad-slot.sidebar-300 {
        width: 100%;
        height: auto;
        min-height: 250px;
    }
    
    .identity-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .identity-grid > .card {
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    nav {
        display: none; /* Hide default nav */
        position: absolute;
        top: 70px;
        left: -20px;
        right: -20px;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    
    nav.show {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    nav ul li a.active {
        border-bottom: none;
        border-left: 2px solid var(--accent-indigo);
        border-radius: 0 8px 8px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .identity-grid {
        grid-template-columns: 1fr;
    }
    
    .control-fields {
        flex-direction: column;
        align-items: stretch;
    }
    
    .primary-btn {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .card {
        padding: 16px;
    }
    .generator-control {
        padding: 16px;
    }
    .generator-control h1 {
        font-size: 1.5rem;
    }
    .data-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .data-value-wrapper {
        text-align: left;
        max-width: 100%;
        justify-content: space-between;
        width: 100%;
        margin-top: 4px;
    }
    .copy-btn {
        padding: 6px;
    }
}

@media (max-width: 600px) {
    /* Responsive Table to Cards */
    .table-container {
        border: none;
        background: transparent;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin-bottom: 20px;
        padding: 10px 14px;
        box-shadow: var(--shadow-sm);
    }
    td {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        position: relative;
        padding-left: 45% !important;
        text-align: right !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    td:last-child {
        border-bottom: none;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: var(--text-secondary);
        font-family: var(--font-heading);
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    td > span, td > a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
        text-align: right;
    }
}
