/* Trademark Checker Styles */
:root {
    --bg-color: #0a0a0f;
    --text-color: #ffffff;
    --accent-color: #00d4ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #38ef7d;
    --error-color: #ff0055;
    --warning-color: #ffa500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.bg-animation::before,
.bg-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s infinite ease-in-out;
}

.bg-animation::before {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    top: -100px;
    left: -100px;
}

.bg-animation::after {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8800ff, #ff0055);
    bottom: -100px;
    right: -100px;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 3.0rem;
    margin: 0 0 10px 0;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 40%, #d946ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -2px;
    font-family: 'Space Grotesk', sans-serif;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Actions Bar */
.actions-bar {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.create-poll-btn {
    background: rgba(191, 90, 242, 0.15);
    border: 1px solid rgba(191, 90, 242, 0.3);
    color: #bf5af2;
}

.create-poll-btn:hover {
    background: rgba(191, 90, 242, 0.25);
    box-shadow: 0 4px 12px rgba(191, 90, 242, 0.2);
}

/* Poll Banner */
.poll-active-banner {
    max-width: 1200px;
    margin: 0 auto 20px;
    background: linear-gradient(90deg, rgba(191, 90, 242, 0.2), transparent);
    border-left: 4px solid #bf5af2;
    padding: 12px 20px;
    border-radius: 8px;
    display: none;
    /* Auto-shown via JS */
    align-items: center;
    justify-content: space-between;
}

.poll-active-banner.visible {
    display: flex;
}

.poll-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.poll-btn:hover {
    background: rgba(191, 90, 242, 0.2);
}

/* Brand Cards */
.brands-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
    padding-bottom: 100px;
}

.brand-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(90deg, #00d4ff, #8800ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.favorite-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    padding: 0;
}

.favorite-btn:hover {
    color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.favorite-btn.favorited {
    color: #bf5af2;
}

.favorite-btn.favorited svg {
    fill: #bf5af2;
    filter: drop-shadow(0 0 10px rgba(191, 90, 242, 0.4));
}

.vote-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #bf5af2;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 6px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transform: scale(0);
    transition: transform 0.3s;
}

.vote-badge.visible {
    transform: scale(1);
}

/* Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.results-table th,
.results-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.results-table th {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-available {
    background: rgba(56, 239, 125, 0.15);
    color: #38ef7d;
    border: 1px solid rgba(56, 239, 125, 0.3);
}

.status-taken {
    background: rgba(255, 0, 85, 0.15);
    color: #ff0055;
    border: 1px solid rgba(255, 0, 85, 0.3);
}

.status-warning {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.status-checking {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.view-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.view-btn:hover {
    background: var(--accent-color);
    color: black;
}

.check-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

.check-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
}



/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.visible {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.modal-content {
    background: #1a1a20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-btn-confirm {
    background: var(--accent-color);
    color: #000;
}

.cta-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    margin-bottom: 20px;
    text-align: left;
}

/* Search Options */
.search-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 24px;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.option-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.custom-checkbox:hover {
    color: white;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox input:checked+.checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
    margin-top: -2px;
}

.custom-checkbox input:checked+.checkmark::after {
    transform: rotate(45deg) scale(1);
}

.region-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.1);
}