/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #000000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    color: #8ACE00;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #8ACE00;
}

.language-selector {
    margin-left: 1rem;
}

.language-select {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Main Content */
.main {
    flex: 1;
    padding: 2rem 0;
}

/* Generator Section */
.generator-section {
    margin-bottom: 3rem;
}

.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Controls Panel */
.controls-panel {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.controls-panel h2 {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333333;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Text Input */
.text-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #8ACE00;
}

.character-count {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #666666;
}

/* Color Controls */
.color-presets {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-btn {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #000000;
    box-shadow: 0 0 0 2px #8ACE00;
}

.custom-color {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-picker {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Font Controls */
.font-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.font-family-control {
    margin-bottom: 10px;
}

.font-family-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.font-family-select option {
    padding: 8px;
}

/* Preview styles for each font option */
.font-family-select option[value="Arial, sans-serif"] {
    font-family: Arial, sans-serif;
}

.font-family-select option[value="'Press Start 2P', cursive"] {
    font-family: 'Press Start 2P', cursive;
}

.font-family-select option[value="'Permanent Marker', cursive"] {
    font-family: 'Permanent Marker', cursive;
}

.font-family-select option[value="'Rubik Glitch', cursive"] {
    font-family: 'Rubik Glitch', cursive;
}

.font-family-select option[value="'Rubik Spray Paint', cursive"] {
    font-family: 'Rubik Spray Paint', cursive;
}

.font-family-select option[value="'Nabla', cursive"] {
    font-family: 'Nabla', cursive;
}

.font-family-select option[value="'Silkscreen', cursive"] {
    font-family: 'Silkscreen', cursive;
}

/* Hover effects */
.font-family-select:hover {
    border-color: #8ACE00;
}

.font-family-select:focus {
    outline: none;
    border-color: #8ACE00;
    box-shadow: 0 0 0 2px rgba(138, 206, 0, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.font-size-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

.font-size-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8ACE00;
    cursor: pointer;
}

.font-size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8ACE00;
    cursor: pointer;
    border: none;
}

#fontSizeValue {
    min-width: 45px;
    font-weight: 600;
    color: #333333;
}

/* Download Button */
.download-btn {
    width: 100%;
    background-color: #8ACE00;
    color: #000000;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #7AB800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138, 206, 0, 0.3);
}

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

/* Canvas Container */
.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e0e0e0;
}

#bratCanvas {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* Examples Section */
.examples-section {
    margin-top: 3rem;
    text-align: center;
}

.examples-section h3 {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.example-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: lowercase;
    color: #000000;
}

.example-item:hover {
    transform: scale(1.05);
}

.example-item[data-color="#8ACE00"] {
    background-color: #8ACE00;
}

.example-item[data-color="#FF69B4"] {
    background-color: #FF69B4;
}

.example-item[data-color="#FFFFFF"] {
    background-color: #FFFFFF;
    border: 2px solid #cccccc;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #8ACE00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .generator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .controls-panel {
        order: 2;
    }
    
    .canvas-container {
        order: 1;
        padding: 1rem;
    }
    
    #bratCanvas {
        width: 100%;
        max-width: 400px;
    }
    
    .color-presets {
        justify-content: center;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 1rem auto 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .controls-panel h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .controls-panel {
        padding: 1.5rem;
    }
    
    .color-btn {
        width: 40px;
        height: 40px;
    }
    
    .color-picker {
        width: 40px;
        height: 30px;
    }
} 

/* Pattern Controls */
.pattern-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pattern-select {
    width: 100%;
}

.pattern-style-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.pattern-style-select:hover {
    border-color: #8ACE00;
}

.pattern-style-select:focus {
    outline: none;
    border-color: #8ACE00;
    box-shadow: 0 0 0 2px rgba(138, 206, 0, 0.2);
}

.pattern-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pattern-opacity-label,
.pattern-size-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.pattern-opacity-slider,
.pattern-size-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.pattern-opacity-slider::-webkit-slider-thumb,
.pattern-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #8ACE00;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pattern-opacity-slider::-moz-range-thumb,
.pattern-size-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #8ACE00;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pattern-opacity-slider:hover::-webkit-slider-thumb,
.pattern-size-slider:hover::-webkit-slider-thumb {
    background: #7ab000;
}

.pattern-opacity-slider:hover::-moz-range-thumb,
.pattern-size-slider:hover::-moz-range-thumb {
    background: #7ab000;
} 