/* TNLrepchecker Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #475569;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

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

header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.logo a {
    text-decoration: none;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-actions-container {
    display: flex;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.search-box h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.or-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    flex-shrink: 0;
}

.or-divider span {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.report-box {
    flex: 1;
    min-width: 300px;
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.report-box h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.btn-report-large {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 50px;
}

.btn-report-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-card ul {
    list-style: none;
}

/* Bullet points for How it works and Review Types */
.how-it-works-list {
    list-style: disc;
    padding-left: 1.5em;
}

.how-it-works-list li {
    padding: 4px 0;
}

.info-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.info-card li:last-child {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.badge-cheating {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-toxicity {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-scamming {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-other {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.badge-trolling {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-abuse {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-spam {
    background: rgba(168, 85, 247, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-loot {
    background: rgba(251, 146, 60, 0.2);
    color: #fdba74;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.badge-exploiting {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-macroing {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-bad {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-dwagon {
    background: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-good {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.badge-kill_squad {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.badge-guild {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Stats Section */
.stats-section {
    margin-bottom: 40px;
}

.stats-section h2 {
    margin-bottom: 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Back to Search (player profile) */
.back-to-search {
    flex-shrink: 0;
}

.back-to-search .btn-secondary {
    display: inline-block;
}

/* Player Profile */
.player-profile {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.profile-header {
    position: relative;
    margin-bottom: 18px;
}

.profile-top-row {
    position: relative;
    min-height: 76px;
}

.profile-top-row .back-to-search {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.profile-header-center {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding-top: 50px;
    box-sizing: border-box;
}

.likely-class {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -88%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.likely-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.class-icon-row {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.class-pill {
    display: inline-block;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    line-height: 0;
}

.class-icon {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 0;
    object-fit: cover;
    background: #020617;
    vertical-align: middle;
}

.player-name-heading {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-shadow: 0 0 20px rgba(15, 23, 42, 0.9), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.player-name-text {
    display: inline-block;
}

.name-update-icon {
    position: absolute;
    left: 100%;
    top: -4px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 0;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.name-update-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Tooltip */
.name-update-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    margin-bottom: 5px;
}

.name-update-icon::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-3px);
    border: 5px solid transparent;
    border-top-color: var(--bg-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.name-update-icon:hover::before,
.name-update-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.name-update-icon:hover::after {
    transform: translateX(-50%) translateY(0);
}

.aliases-section {
    margin-top: 15px;
}

.aliases-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.aliases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.alias-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.alias-tag.alias-primary {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
    font-weight: 600;
}

.alias-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 4px;
}

.guild-info {
    background: var(--bg-tertiary);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.guild-info h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.guild-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.guild-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.previous-guilds {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.previous-guilds h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.guild-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guild-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.guild-list li:last-child {
    border-bottom: none;
}

.guild-list-name {
    color: var(--text-primary);
    font-weight: 500;
}

.guild-list-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.player-id {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.reputation-summary {
    margin-bottom: 30px;
}

.reputation-summary h3 {
    margin-bottom: 20px;
}

.reports-section {
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    margin: 0;
}

/* Reports List */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-card {
    background: var(--bg-tertiary);
    border-radius: 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.report-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.report-classes {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 10px;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.report-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.report-status {
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.status-verified {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.status-dismissed {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
}

.reporter {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.report-description {
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.evidence a {
    color: var(--primary-color);
    text-decoration: none;
}

.evidence a:hover {
    text-decoration: underline;
}

.no-reports {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.no-reports a {
    color: var(--primary-color);
    text-decoration: none;
}

.no-reports a:hover {
    text-decoration: underline;
}

/* Report Form */
.report-form-section {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.report-form-section h2 {
    margin-bottom: 25px;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-group select option[value=""] {
    color: var(--text-secondary);
}

/* Style select when placeholder option is selected */
.form-group select:invalid,
.form-group select option[value=""]:checked {
    color: var(--text-secondary);
}

/* For browsers that support :has */
.form-group select:has(option[value=""]:checked) {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.class-select-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.class-select-row select {
    flex: 1;
    min-width: 140px;
}

.inline-form {
    background: var(--bg-tertiary);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.inline-form h4 {
    margin-bottom: 15px;
}

.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    margin-bottom: 20px;
}

.comment-card {
    background: var(--bg-tertiary);
    border-radius: 0;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.commenter-name {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.6;
}

.no-comments {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.comment-form-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.comment-form-section h4 {
    margin-bottom: 15px;
}

.not-found-message {
    text-align: center;
    padding: 60px 20px;
}

.not-found-message h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.not-found-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.not-found-message strong {
    color: var(--primary-color);
    font-weight: 600;
}

.not-found-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 0;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert p {
    margin-bottom: 8px;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert a {
    color: inherit;
    text-decoration: underline;
}

/* Actions Section */
.actions-section {
    text-align: center;
    margin: 30px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .search-actions-container {
        flex-direction: column;
    }

    .or-divider {
        padding: 10px 0;
    }

    .or-divider span {
        padding: 8px 16px;
    }

    .search-box,
    .report-box {
        min-width: 100%;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group button {
        width: 100%;
    }

    .btn-report-large {
        width: 100%;
    }

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

    .info-section {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button,
    .form-actions a {
        width: 100%;
        text-align: center;
    }
}

