:root {
    /* Modern color palette */
    --primary-color: #7C3AED;
    --secondary-color: #5B21B6;
    --background-color: #ffffff;
    --text-color: #2D2D2D;
    --accent-color: #7C3AED;
    --hover-color: #5B21B6;
    --surface-color: #F9FAFB;
    --border-color: #E5E7EB;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

.dark-theme {
    --background-color: #111827;
    --text-color: #F9FAFB;
    --secondary-color: #9CA3AF;
    --surface-color: #1F2937;
    --border-color: #374151;
}

nav {
    background-color: var(--surface-color);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.button {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.hero {
    text-align: left;
    padding: 8rem 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    max-width: 600px;
}

/* Tools Grid Styles */
.tools-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 2rem 0;
}

.tool-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.2s ease;
}

.tool-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}

.tool-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.tool-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
}

/* Color Tools Specific Styles */
.color-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.color-picker {
    width: 100%;
    height: 100px;
    margin: 1.5rem 0;
    border: none;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
}

.color-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.color-palette {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.color-palette div {
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-family: monospace;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Footer Styles */
footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive navigation */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a, 
    nav ul li button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Responsive grid layouts */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive form elements */
@media (max-width: 768px) {
    .input-group {
        grid-template-columns: 1fr;
    }
    
    .input-style,
    .select-style,
    .button {
        width: 100%;
    }
}

/* Tool card responsive styles */
@media (max-width: 768px) {
    .tool-card {
        padding: 1rem;
    }
}

/* Color preview responsive adjustments */
@media (max-width: 768px) {
    .color-palette > div {
        flex-direction: column;
        text-align: center;
    }
}

/* Grid preview responsive adjustments */
@media (max-width: 768px) {
    .grid-preview {
        overflow-x: auto;
    }
}

/* Component preview responsive adjustments */
@media (max-width: 768px) {
    .component-preview {
        padding: 1rem;
    }
}

/* Export preview responsive adjustments */
@media (max-width: 768px) {
    .code-block {
        font-size: 14px;
    }
} 