/* ==================== Coolors Shared Styles ==================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a2e;
    background: #fff;
    min-height: 100vh;
}

a {
    color: #0066ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #0066ff;
    text-decoration: none !important;
    letter-spacing: -0.5px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.tools-dropdown {
    position: relative;
}

.tools-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 280px;
    padding: 8px;
    z-index: 1000;
}

.tools-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    border-radius: 8px;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.btn-gopro {
    color: #0066ff !important;
    font-weight: 600;
}

.btn-signin {
    color: #333;
    font-weight: 500;
}

.btn-signup {
    background: #0066ff;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-signup:hover {
    background: #0052cc;
    text-decoration: none;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Page Headers */
.page-header {
    padding: 60px 24px;
    text-align: center;
}

.page-header.blue-bg {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: #fff;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.filter-tag {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.filter-tag:hover {
    border-color: #999;
}

.filter-tag.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.filter-tag.red { background: #ef4444; color: #fff; border-color: #ef4444; }
.filter-tag.orange { background: #f97316; color: #fff; border-color: #f97316; }
.filter-tag.yellow { background: #eab308; color: #333; border-color: #eab308; }
.filter-tag.green { background: #22c55e; color: #fff; border-color: #22c55e; }
.filter-tag.turquoise { background: #14b8a6; color: #fff; border-color: #14b8a6; }
.filter-tag.blue { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.filter-tag.purple { background: #a855f7; color: #fff; border-color: #a855f7; }
.filter-tag.pink { background: #ec4899; color: #fff; border-color: #ec4899; }
.filter-tag.white { background: #fff; color: #333; border-color: #ddd; }
.filter-tag.gray { background: #6b7280; color: #fff; border-color: #6b7280; }
.filter-tag.black { background: #1f2937; color: #fff; border-color: #1f2937; }

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.color-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.color-card .color-preview {
    height: 140px;
    border-radius: 12px 12px 0 0;
}

.color-card .color-info {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.color-card .color-name {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.color-card .color-actions {
    display: flex;
    gap: 12px;
    color: #bbb;
    font-size: 14px;
}

.color-card .color-actions span {
    cursor: pointer;
    transition: color 0.2s;
}

.color-card .color-actions span:hover {
    color: #333;
}

/* Gradient Grid */
.gradient-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.gradient-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gradient-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.gradient-card .gradient-preview {
    height: 140px;
    border-radius: 12px 12px 0 0;
}

.gradient-card .gradient-info {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.gradient-card .gradient-name {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.gradient-card .gradient-actions {
    display: flex;
    gap: 12px;
    color: #bbb;
    font-size: 14px;
}

/* Palette Grid */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.palette-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    border: 1px solid #eee;
}

.palette-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.palette-card .palette-colors {
    display: flex;
    height: 100px;
}

.palette-card .palette-colors div {
    flex: 1;
    cursor: pointer;
    transition: flex 0.2s;
}

.palette-card .palette-colors div:hover {
    flex: 1.3;
}

.palette-card .palette-info {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.palette-card .palette-name {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.palette-card .palette-likes {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 13px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none !important;
}

.btn-primary {
    background: #0066ff;
    color: #fff;
}

.btn-primary:hover {
    background: #0052cc;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #eee;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #333;
}

.btn-outline:hover {
    border-color: #0066ff;
    color: #0066ff;
}

/* Footer */
footer {
    background: #f9f9f9;
    padding: 60px 24px 30px;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: #555;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #0066ff;
    text-decoration: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #999;
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social a {
    color: #666;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: #0066ff;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #22c55e;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 12px 16px;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.search-box svg {
    color: #999;
}

/* Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.tool-card {
    padding: 28px;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.tool-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-card .arrow {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Section Titles */
.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    text-align: center;
    margin: 50px 0 30px;
}

/* Font Grid */
.font-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #eee;
    border: 1px solid #eee;
}

.font-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.font-card:hover {
    background: #f9f9f9;
}

.font-card .font-preview {
    font-size: 28px;
    margin-bottom: 10px;
}

.font-card .font-name {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.font-card .font-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    color: #ccc;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .color-grid,
    .gradient-grid,
    .palette-grid,
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .font-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .color-grid,
    .gradient-grid,
    .palette-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .header-promo {
        display: none;
    }
    
    .font-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }