/* Random Color Generator - Specific Styles */

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

.generator-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;
}

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

/* Generator Section */
.generator-section {
    margin-bottom: 60px;
}

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

/* Controls Section */
.controls-section {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.control-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.control-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--background);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-generate {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Palette Display */
.palette-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.color-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-card:hover {
    transform: scale(1.02);
    z-index: 10;
}

.color-swatch {
    width: 100%;
    height: 250px;
    transition: all 0.3s ease;
}

.color-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.color-card:hover .color-info {
    transform: translateY(0);
}

.color-hex {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin-bottom: 4px;
}

.color-rgb {
    font-size: 13px;
    opacity: 0.9;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin-bottom: 12px;
}

.color-actions {
    display: flex;
    gap: 8px;
}

.btn-copy-small,
.btn-lock-small {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-copy-small:hover,
.btn-lock-small:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* Palette Actions */
.palette-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Saved Palettes Section */
.saved-palettes-section {
    margin-top: 40px;
}

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

.saved-palettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.saved-palette-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.saved-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 80px;
}

.saved-color {
    height: 100%;
}

.saved-actions {
    display: flex;
    padding: 12px;
    gap: 8px;
}

.btn-load,
.btn-delete {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-load:hover {
    background: var(--primary-hover);
}

.btn-delete {
    background: var(--background-secondary);
    color: var(--text-secondary);
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

.no-saved {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-size: 14px;
}

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

.generator-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;
}

/* Schemes Info */
.schemes-info {
    margin-bottom: 60px;
}

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

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

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

.scheme-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

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

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

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

    .controls-section {
        flex-direction: column;
    }

    .control-group {
        width: 100%;
    }

    .palette-display {
        grid-template-columns: 1fr;
    }

    .color-swatch {
        height: 150px;
    }

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

    .palette-actions .btn {
        width: 100%;
    }

    .saved-palettes-grid {
        grid-template-columns: 1fr;
    }

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

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

.color-card {
    animation: fadeIn 0.5s ease-out;
}

.btn-generate:active {
    transform: translateY(0);
}
