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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Dataset Selector Styles */
.data-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.data-selector label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

.dataset-dropdown {
    padding: 10px 20px;
    font-size: 1rem;
    border: 2px solid #667eea;
    border-radius: 25px;
    background: white;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.dataset-dropdown:hover {
    background: #f8f9fa;
    border-color: #764ba2;
}

.dataset-dropdown:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.kink-display {
    width: 100%;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kink-display.hidden {
    display: none;
}

.kink-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.kink-letter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.kink-name {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    flex: 1;
}

.kink-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kink-description {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
}

.alternate-names {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.alternate-names.hidden {
    display: none;
}

.alternate-names strong {
    color: #667eea;
    margin-right: 8px;
}

#alternateNamesList {
    color: #555;
    font-style: italic;
}

footer {
    margin-top: 40px;
    text-align: center;
}

.disclaimer {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .generate-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .kink-name {
        font-size: 1.5rem;
    }

    .kink-letter {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .kink-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .generate-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .kink-display {
        padding: 20px;
    }

    .kink-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== Navigation Styles ===== */
.page-nav {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* ===== List Page Styles ===== */
.loading-message {
    text-align: center;
    font-size: 1.2rem;
    color: #667eea;
    padding: 40px;
    font-weight: 600;
}

.loading-message.hidden {
    display: none;
}

.kinks-list-container {
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.kinks-list-container.hidden {
    display: none;
}

.letter-section {
    margin-bottom: 50px;
}

.letter-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e0e0e0;
}

.letter-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.letter-title {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
    flex: 1;
}

.kinks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.kink-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.kink-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.kink-card-header {
    margin-bottom: 15px;
}

.kink-card-name {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    margin: 0;
}

.kink-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kink-card-description {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.kink-card-alt-names {
    background: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.kink-card-alt-names strong {
    color: #667eea;
    margin-right: 6px;
}

/* All Items Section (for sex ideas without letters) */
.all-items-section {
    margin-bottom: 50px;
}

.all-items-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e0e0e0;
}

.all-items-title {
    font-size: 2.2rem;
    color: #333;
    font-weight: 700;
    text-align: center;
}

/* ===== Responsive Design for List Page ===== */
@media (max-width: 768px) {
    .letter-badge {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .letter-title {
        font-size: 1.6rem;
    }

    .all-items-title {
        font-size: 1.8rem;
    }

    .kink-card-name {
        font-size: 1.3rem;
    }

    .kink-card {
        padding: 20px;
    }

    .nav-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .data-selector {
        flex-direction: column;
        gap: 8px;
    }

    .dataset-dropdown {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .letter-header {
        gap: 15px;
    }

    .letter-badge {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .letter-title {
        font-size: 1.4rem;
    }

    .all-items-title {
        font-size: 1.5rem;
    }

    .kink-card {
        padding: 15px;
    }

    .kink-card-name {
        font-size: 1.2rem;
    }

    .kink-card-description {
        font-size: 0.95rem;
    }

    .loading-message {
        font-size: 1rem;
        padding: 30px 20px;
    }

    .dataset-dropdown {
        width: 100%;
        max-width: 250px;
    }
}

/* ===== Truth or Dare Game Styles ===== */
.tod-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.tod-btn {
    padding: 25px 50px;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    min-width: 180px;
}

.truth-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.truth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
}

.truth-btn:active {
    transform: translateY(-1px);
}

.dare-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.dare-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.5);
}

.dare-btn:active {
    transform: translateY(-1px);
}

.challenge-display {
    width: 100%;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    animation: slideIn 0.4s ease-out;
}

.challenge-display.hidden {
    display: none;
}

.challenge-header {
    text-align: center;
    margin-bottom: 30px;
}

.challenge-type {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.truth-type {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.dare-type {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

.challenge-content {
    margin-bottom: 30px;
}

.challenge-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.challenge-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.next-btn,
.skip-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.skip-btn {
    background: #e0e0e0;
    color: #666;
}

.skip-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.tod-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive for Truth or Dare */
@media (max-width: 768px) {
    .tod-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .tod-btn {
        padding: 20px 40px;
        font-size: 1.3rem;
        width: 100%;
    }

    .challenge-display {
        padding: 30px 25px;
    }

    .challenge-text {
        font-size: 1.1rem;
    }

    .challenge-type {
        font-size: 1.1rem;
        padding: 10px 25px;
    }

    .tod-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .tod-btn {
        padding: 18px 35px;
        font-size: 1.2rem;
        min-width: auto;
    }

    .challenge-display {
        padding: 25px 20px;
    }

    .challenge-text {
        font-size: 1rem;
    }

    .next-btn,
    .skip-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.7rem;
    }
}