/* Color Namer - Specific Styles */

.namer-hero {
    text-align: center;
    margin-bottom: 40px;
}

.namer-hero h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.namer-hero p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Namer Section */
.namer-section {
    margin-bottom: 60px;
}

.namer-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Color Input Section */
.color-input-section {
    margin-bottom: 30px;
}

.color-input-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

.color-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.color-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-picker-native {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
    padding: 0;
}

.color-picker-native::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-native::-webkit-color-swatch {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.color-picker-native::-moz-color-swatch {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.color-text-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

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

/* Result Section */
.result-section {
    margin-bottom: 40px;
}

.color-display-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
}

.color-preview-large {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border-radius: var(--radius);
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.color-name-result {
    margin-bottom: 24px;
}

.name-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.name-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.name-match {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.color-values {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.value-item {
    text-align: center;
}

.value-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.value-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.btn-copy {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* Matches Section */
.matches-section {
    margin-bottom: 40px;
}

.matches-section h3 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.match-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.match-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.match-color {
    width: 100%;
    height: 100px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    margin-bottom: 12px;
}

.match-info {
    text-align: center;
}

.match-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.match-percent {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.match-hex {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Categories Section */
.categories-section {
    margin-bottom: 40px;
}

.categories-section h3 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-tag {
    padding: 10px 20px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.category-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Info Section */
.namer-info-section {
    margin-bottom: 60px;
}

.namer-info-section h3 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Database Info */
.database-info {
    margin-bottom: 60px;
}

.info-box {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: white;
}

.info-box h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-box p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.database-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .namer-hero h2 {
        font-size: 28px;
    }

    .color-preview-large {
        width: 150px;
        height: 150px;
    }

    .name-value {
        font-size: 24px;
    }

    .color-values {
        gap: 20px;
    }

    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .database-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }
}

/* Animation */
@keyframes colorPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.color-preview-large {
    animation: colorPulse 2s ease-in-out infinite;
}

.match-card {
    transition: all 0.3s ease;
}
