/* SkyRim RP Names Generator Styles */
:root {
    --primary-color: #8b5a3c;
    --primary-hover: #6b4230;
    --secondary-color: #2c3e50;
    --accent-color: #d4af37;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --background: #f4f1e8;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #8b5a3c 0%, #6b4230 100%);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #8b5a3c, #6b4230, #5a3525, #4a2c1d);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.header-section h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Generator Card */
.generator-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.generator-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Result Section */
.result-section {
    text-align: center;
    margin-bottom: 2rem;
}

.result-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.result-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 90, 60, 0.3), transparent);
    transition: left 0.6s ease;
}

.result-display.animate::before {
    left: 100%;
}

.result-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease;
}

.result-text.generated {
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.copy-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 90, 60, 0.3);
    opacity: 0.7;
    pointer-events: none;
}

.copy-button.active {
    opacity: 1;
    pointer-events: all;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 60, 0.4);
}

.copy-button.copied {
    background: #27ae60;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.copy-button .icon {
    font-size: 1.1rem;
}

/* Controls */
.controls {
    text-align: center;
}

.generate-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 90, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.generate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 90, 60, 0.4);
}

.generate-button:active {
    transform: translateY(-1px);
}

.button-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.generate-button:active .button-effect {
    width: 300px;
    height: 300px;
}

.button-text {
    position: relative;
    z-index: 1;
}

.hotkey-hint {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.hotkey-hint kbd {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Race Selector */
.race-selector {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.race-selector h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.3rem;
}

.race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.race-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.race-option input[type="radio"] {
    display: none;
}

.race-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.race-option:hover .race-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 90, 60, 0.2);
}

.race-option input[type="radio"]:checked + .race-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(139, 90, 60, 0.1) 0%, rgba(107, 66, 48, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 60, 0.3);
}

.race-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.race-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.race-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Gender Selector */
.gender-selector {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gender-selector h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.3rem;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    transform: translateY(-2px);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-text {
    font-weight: 500;
    color: var(--text-color);
    user-select: none;
}

/* History */
.history {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.history-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: transparent;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.history-name {
    font-weight: 500;
    color: var(--text-color);
}

.history-race {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.history-copy {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.history-copy:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.clear-history {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-history:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    margin: 3rem 0;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.about-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.about-features h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-features ul {
    list-style: none;
    padding: 0;
}

.about-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.races-info {
    text-align: center;
}

.races-info h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.races-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.race-info {
    background: rgba(139, 90, 60, 0.1);
    padding: 1rem;
    border-radius: 10px;
    color: var(--text-light);
}

.race-info strong {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .container {
        padding: 1rem;
    }

    .header-section h1 {
        font-size: 2rem;
    }

    .header-section h2 {
        font-size: 1.2rem;
    }

    .generator-card,
    .race-selector,
    .gender-selector,
    .history {
        padding: 1.5rem;
    }

    .race-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .radio-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .races-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .result-text {
        font-size: 1.4rem;
    }

    .generate-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .copy-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .race-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .background-animation,
    .nav-bar,
    .generate-button,
    .copy-button,
    .clear-history,
    footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .generator-card,
    .race-selector,
    .gender-selector,
    .history {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
