/* Wordbi Color - Custom Styles */

/* ===== BASE STYLES ===== */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --dark-color: #1a1a1a;
    --light-color: #ecf0f1;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== HEADER STYLES ===== */
.header-dark {
    background: linear-gradient(135deg, #000000 0%, #2c3e50 100%);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-dark .navbar {
    padding: 1rem 0;
}

.header-dark .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.header-dark .navbar-brand:hover {
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

/* ===== NAVBAR LOGO STYLES ===== */
.navbar-logo {
    height: 55px;
    width: auto;
    transition: var(--transition);
    filter: brightness(1.1);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    filter: brightness(1.3);
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 45px;
    }
    
    .header-dark .navbar-brand {
        font-size: 1.5rem;
    }
}

.header-dark .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.header-dark .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.header-dark .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.header-dark .nav-link:hover::after {
    width: 80%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ===== COLOR WHEEL ANIMATION ===== */
.color-wheel-animation {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
}

.color-segment {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.color-segment:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.color-segment:nth-child(2) { top: 25%; right: 0; animation-delay: 0.25s; }
.color-segment:nth-child(3) { bottom: 25%; right: 0; animation-delay: 0.5s; }
.color-segment:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.75s; }
.color-segment:nth-child(5) { bottom: 25%; left: 0; animation-delay: 1s; }
.color-segment:nth-child(6) { top: 25%; left: 0; animation-delay: 1.25s; }
.color-segment:nth-child(7) { top: 50%; left: 25%; animation-delay: 1.5s; }
.color-segment:nth-child(8) { top: 50%; right: 25%; animation-delay: 1.75s; }

/* ===== SECTION STYLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARD STYLES ===== */
.card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== COLOR PICKER STYLES ===== */
.color-input-wrapper {
    position: relative;
}

.color-picker {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.color-picker:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.color-info {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.color-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--secondary-color);
    background: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ===== HARMONY STYLES ===== */
.harmony-group {
    padding: 1rem 0;
}

.harmony-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.color-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-light);
    border: 3px solid white;
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.color-swatch::after {
    content: attr(data-color);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: var(--shadow-light);
    opacity: 0;
    transition: var(--transition);
}

.color-swatch:hover::after {
    opacity: 1;
}

/* ===== THEORY CARDS ===== */
.theory-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.theory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.theory-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.theory-card h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.theory-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== WEB COMBINATIONS ===== */
.combination-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.combination-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.combination-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.combination-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.combination-color {
    flex: 1;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.combination-color:hover {
    transform: scale(1.05);
}

.combination-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.combination-usage {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== PALETTE SHOWCASE ===== */
.palette-showcase {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.palette-showcase:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.palette-showcase h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.palette-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.palette-color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.palette-color:hover {
    transform: scale(1.1);
}

.palette-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-dark h5 {
    font-weight: 600;
}

.footer-dark p {
    margin-bottom: 0.5rem;
}

/* ===== FOOTER LOGO STYLES ===== */
.footer-logo {
    height: 22px;
    width: auto;
    transition: var(--transition);
    filter: brightness(1.1);
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

@media (max-width: 768px) {
    .footer-logo {
        height: 20px;
    }
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    padding: 0.75rem 2rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-primary);
    filter: brightness(1.1);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .color-wheel-animation {
        width: 200px;
        height: 200px;
    }
    
    .color-segment {
        width: 35px;
        height: 35px;
    }
    
    .color-swatch {
        width: 60px;
        height: 60px;
    }
    
    .combination-color {
        height: 50px;
    }
    
    .palette-color {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .color-row {
        gap: 0.5rem;
    }
    
    .color-swatch {
        width: 50px;
        height: 50px;
    }
    
    .combination-colors {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .combination-color {
        height: 40px;
    }
} 