/* Base Styles for All Tools - Matching shadow.html Design */

/* Font Face Declarations - Optional, using system fonts as primary */
/* Uncomment and adjust path if you want to use custom fonts */
/*
@font-face {
    font-family: 'GeneralSans Variable';
    src: url('../Webflow sites/Gabeflavin/GF Portfolio/fonts/GeneralSans-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Urbanist Variable';
    src: url('../Webflow sites/Gabeflavin/GF Portfolio/fonts/Urbanist-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
*/

/* CSS Variables - Design System */
:root {
    --bg-color: #f0f2f5;
    --panel-color: #ffffff;
    --text-color: #333;
    --accent-color: #000000;
    --button-hover: #4caf50;
    --button-hover-text: #000000;
    --code-bg: #1e1e1e;
    --code-text: #00ff9d;
    --border-color: #ddd;
    --text-secondary: #666;
    --text-muted: #888;
}

/* Base Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    font-weight: 600;
    color: var(--text-color);
}

h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

p.subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Navigation Styles */
.tools-nav {
    background: var(--panel-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    z-index: 100;
    position: relative;
}

.tools-nav h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    flex-shrink: 0;
}

.tools-nav h2 a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tools-nav h2 a:hover {
    opacity: 0.7;
    text-decoration: none;
}

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

.tools-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.25rem 0;
}

.tools-nav-links a:hover {
    color: var(--accent-color);
}

.tools-nav-links a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.tools-footer {
    background: var(--panel-color);
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-content a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: var(--accent-color);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    min-width: 30px;
    height: 21px;
    min-height: 21px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    z-index: 101;
    position: relative;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: transparent !important;
    color: inherit !important;
}

.nav-toggle span {
    display: block !important;
    width: 100%;
    height: 3px;
    background-color: #000000 !important;
    border-radius: 3px;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tools-nav {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
        gap: 1rem;
        justify-content: space-between;
    }
    
    .tools-nav h2 {
        flex: 1;
        min-width: 0;
    }

    .nav-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 21px !important;
        min-height: 21px !important;
        margin-left: auto !important;
        order: 2;
    }
    
    .nav-toggle span {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #000000 !important;
    }

    .tools-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
        order: 3;
    }

    .tools-nav.nav-open .tools-nav-links {
        display: flex;
    }

    .tools-nav-links li {
        width: 100%;
    }

    .tools-nav-links a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .tools-nav-links li:last-child a {
        border-bottom: none;
    }

    .tools-footer {
        padding: 1rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Hamburger Animation - Transform to X */
    .tools-nav.nav-open .nav-toggle {
        background: transparent !important;
    }
    
    /* Hide middle span when menu is open (X state) */
    .tools-nav.nav-open .nav-toggle span:nth-child(2) {
        display: none !important;
    }
    
    .tools-nav.nav-open .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: #000000;
    }
    
    .tools-nav.nav-open .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
        background-color: #000000;
    }

    /* App Container - Stack on mobile */
    .app-container {
        flex-direction: column !important;
        padding: 0 !important;
    }

    /* Sidebar - Full width on mobile, 30% height */
    aside {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        overflow-y: auto;
        height: 30vh;
        max-height: 30vh;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
    }

    /* Main content - Full width on mobile */
    main {
        width: 100% !important;
        padding: 1rem;
        overflow-y: auto;
        min-height: 50vh;
    }

    /* Body - Allow scrolling on mobile */
    body {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }

    /* Control groups - Adjust padding */
    .control-group {
        padding: 0.75rem !important;
    }

    /* Typography - Smaller on mobile */
    h1 {
        font-size: 1.25rem !important;
    }

    h2 {
        font-size: 1.1rem !important;
    }

    h3 {
        font-size: 1rem !important;
    }

    /* Buttons - Full width on mobile (except nav-toggle) */
    button:not(.nav-toggle) {
        width: 100%;
        padding: 0.875rem !important;
        font-size: 0.9rem !important;
    }

    /* Inputs - Full width */
    input[type="range"],
    input[type="number"],
    input[type="color"],
    input[type="file"],
    select,
    textarea {
        width: 100% !important;
    }

    /* Code output - Adjust padding */
    .code-output {
        padding: 1rem !important;
    }

    /* Preview cards - Responsive sizing */
    .preview-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Label rows - Stack on mobile */
    .label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Fill type groups - Stack on mobile */
    .fill-type-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Gradient colors - Stack on mobile */
    .gradient-colors {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Range wrap - Stack on mobile */
    .range-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .range-wrap output {
        text-align: left;
    }

    /* Code blocks - Full width */
    .code-block {
        width: 100%;
    }

    /* Grid layouts - Single column */
    .preview-grid {
        grid-template-columns: 1fr !important;
    }
}
.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Input Styles */
input[type="number"] {
    width: 60px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    text-align: right;
    color: var(--text-color);
    font-size: 0.9rem;
}

input[type="number"]:focus {
    border-color: var(--accent-color);
    outline: none;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    background-image: linear-gradient(to right, #007bff 0%, #007bff var(--range-progress, 0%), #e0e0e0 var(--range-progress, 0%), #e0e0e0 100%);
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(to right, #007bff 0%, #007bff var(--range-progress, 0%), #e0e0e0 var(--range-progress, 0%), #e0e0e0 100%);
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 1;
    margin-top: -6px;
}

input[type="range"]::-moz-range-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

input[type="range"]::-moz-range-progress {
    background: #007bff;
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1;
}

input[type="color"] {
    width: 50px;
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    background: var(--panel-color);
}

input[type="file"]:hover {
    border-color: var(--accent-color);
}

select {
    width: 100%;
    padding: 8px 30px 8px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--panel-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Button Styles */
button:not(.nav-toggle) {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

button:hover:not(:disabled):not(.nav-toggle) {
    background: var(--button-hover);
    color: var(--button-hover-text);
}

button:active:not(:disabled):not(.nav-toggle) {
    opacity: 0.9;
}

/* Button-like elements hover styles - inherits from base button hover */
a.btn-download:hover,
.btn-copy:hover:not(:disabled),
.btn-export:hover:not(:disabled),
.btn-add-stop:hover:not(:disabled),
.btn-remove-stop:hover:not(:disabled),
button.copy-btn:hover:not(:disabled),
.btn-copy-code:hover:not(:disabled),
.btn-secondary:hover:not(:disabled),
.btn-small:hover:not(:disabled) {
    background: var(--button-hover) !important;
    color: var(--button-hover-text) !important;
}

/* Code Output Area */
.code-output {
    padding: 2rem;
    background: var(--bg-color);
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

textarea {
    width: 100%;
    height: 120px;
    background: var(--code-bg);
    color: var(--code-text);
    border: none;
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    resize: none;
    box-sizing: border-box;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
}

/* Sidebar/Aside Styles */
aside {
    background: var(--panel-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0,0,0,0.02);
    z-index: 10;
}

/* Main Content Area */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

/* Preview Card */
.preview-card {
    background: var(--panel-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Utility Classes */
.toggle-row {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
}

/* Spacer Classes - Responsive */
.spacer-xs {
    height: 0.5rem;
}
.spacer-sm {
    height: 1rem;
}
.spacer-md {
    height: 1.5rem;
}
.spacer-lg {
    height: 2rem;
}
.spacer-xl {
    height: 3rem;
}
.spacer-2xl {
    height: 4rem;
}

@media (max-width: 768px) {
    .spacer-xs {
        height: 0.25rem;
    }
    .spacer-sm {
        height: 0.5rem;
    }
    .spacer-md {
        height: 1rem;
    }
    .spacer-lg {
        height: 1.5rem;
    }
    .spacer-xl {
        height: 2rem;
    }
    .spacer-2xl {
        height: 2.5rem;
    }
}

/* Responsive adjustments */
/* @media (max-width: 768px) block removed - now handled in Navigation Styles section */

