@import url('https://fonts.googleapis.com/css?family=Raleway:300&display=swap');
@import url('https://fonts.googleapis.com/css?family=Monoton&display=swap');
@import url('https://fonts.googleapis.com/css?family=Poppins:500&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d3436;
    --secondary: #1079b5;
    --accent: #1079b5;
    --light: #f5f6fa;
    --white: #ffffff;
    --gray: #636e72;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway';
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--light);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 2rem;
    font-weight: 700;
}

nav p {
    text-align: center;
    padding: 1rem 1rem;
    margin-bottom: -0.5rem;
}

nav span {
    color: var(--accent);
}

main {
    margin-top: 4.1rem;
}

.mobile-br {
    display: none;
}

@media screen and (max-width: 600px) {
    .mobile-br {
        display: inline;
    }
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    font-weight: 700;
    font-size: 24px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    transition: color 0.3s;
}

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

main {
    margin-top: 4.1rem;
}
/* Commission Header */
.commission-header {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e272e 100%);
    color: var(--white);
    margin-top: 4rem;
}

.commission-info h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Raleway';
    letter-spacing: 2px;
}

.character-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.species-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.color-palette {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.color-block {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.color-block:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Status Overview */
.status-overview {
    padding: 5rem 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.status-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.main-description {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.description-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.description-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.description-card p {
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.progress-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.progress-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 12px;
    transition: width 0.5s ease;
}

.progress-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    min-width: 100px;
}

.status-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.date-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.payment-status {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--primary);
}

.payment-status .status-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.payment-status .status-badge.paid {
    background: #d4edda;
    color: #155724;
}

.payment-status .status-badge.deposit {
    background: #fff3cd;
    color: #856404;
}

.payment-status .status-badge.plan {
    background: #d1ecf1;
    color: #0c5460;
}

.payment-status p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray);
}

/* Progress Timeline */
.progress-timeline {
    padding: 5rem 2rem;
    background: var(--white);
}

.progress-timeline h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), var(--secondary), #6c757d);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -2.25rem;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.timeline-item.completed .timeline-icon {
    background: var(--accent);
    color: var(--white);
}

.timeline-item.in-progress .timeline-icon {
    background: #ffc107;
    color: #212529;
}

.timeline-item.pending .timeline-icon {
    background: #6c757d;
    color: var(--white);
}

.timeline-content {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.timeline-item.completed .timeline-content {
    border-color: #d4edda;
    background: #f8fff9;
}

.timeline-item.in-progress .timeline-content {
    border-color: #ffeaa7;
    background: #fffcf5;
}

.timeline-item.pending .timeline-content {
    border-color: #dee2e6;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.timeline-content p {
    color: var(--gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.reference-images {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed #ddd;
}

.reference-images h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.ref-image {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1;
}

.ref-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ref-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-btn:hover {
    color: #bbb;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e272e 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

footer p {
    opacity: 0.8;
}

/* Lookup Page */
.lookup-container {
    max-width: 600px;
    margin: 5.5rem auto 60px;
    padding-top: 4.1rem;
    padding: 40px;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent);
}

.lookup-header {
    text-align: center;
    margin-bottom: 40px;
}

.lookup-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lookup-header p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.lookup-header .commission-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lookup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
}

.form-group input[type="email"],
.form-group input[type="text"] {
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: var(--white);
    color: var(--primary);
    transition: all 0.3s ease;
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.submit-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
}

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

.result-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    display: none;
}

.result-message.error {
    background: rgba(255, 76, 76, 0.15);
    border: 1px solid rgba(255, 76, 76, 0.3);
    color: #ff6b6b;
    display: block;
}

.result-message.success {
    background: rgba(76, 255, 138, 0.15);
    border: 1px solid rgba(76, 255, 138, 0.3);
    color: #4cff8a;
    display: block;
}

.result-message a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.result-message a:hover {
    border-bottom-color: var(--accent);
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Active Commissions Section */
.active-commissions {
    padding: 5rem 2rem;
    background: var(--light);
}

.active-commissions h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}


.commissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.commission-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.commission-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Raleway';
    letter-spacing: 1px;
}

.commission-description {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.commission-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.commission-start-date {
    font-size: 0.95rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commission-start-date::before {
    content: '📅';
    font-size: 1rem;
}

.no-commissions {
    text-align: center;
    color: var(--gray);
    font-size: 1.2rem;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 600px) {
    .lookup-container {
        margin: 6rem 20px 20px;
        padding: 24px;
    }

    .lookup-header h1 {
        font-size: 1.8rem;
    }

    .commission-header {
        padding: 6rem 1rem 3rem;
        margin-top: 4rem;
    }

    .commission-info h1 {
        font-size: 2.5rem;
    }

    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .status-sidebar {
        order: -1;
    }

    .progress-bar-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .progress-text {
        text-align: center;
    }

    .timeline-container {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-icon {
        left: -1.75rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 18px;
    }

    section {
        padding: 3rem 1rem;
    }

    .active-commissions {
        padding: 3rem 1rem;
    }

    .commission-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .commission-header {
        padding: 6rem 1rem 3rem;
        margin-top: 4rem;
    }

    .commission-info h1 {
        font-size: 2.5rem;
    }

    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .status-sidebar {
        order: -1;
    }

    .progress-bar-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .progress-text {
        text-align: center;
    }

    .timeline-container {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-icon {
        left: -1.75rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 18px;
    }

    section {
        padding: 3rem 1rem;
    }
}