/* Brand Fonts */
@font-face {
    font-family: 'Magic Alphabet';
    src: url('assets/fonts/MagicAlphabet.woff2') format('woff2'),
         url('assets/fonts/MagicAlphabet.woff') format('woff'),
         url('assets/fonts/MagicAlphabet.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Brand Colors - Customize these to match your brand */
:root {
    /* Awenest brand palette */
    --brand-color-1: #B7D053;   /* Green */
    --brand-color-2: #CDE4E9;   /* Soft blue */
    --brand-color-3: #fce6ee;   /* Pink */
    --brand-text: #383F48;      /* Dark text */
    --brand-light: #f8f9fa;     /* Light background */
    
    /* Brand Fonts */
    --font-body: 'Lato', sans-serif;
    --font-heading: 'Magic Alphabet', 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--brand-color-2);
    min-height: 100vh;
    padding: 20px;
    color: var(--brand-text);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: var(--brand-color-1);
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background: var(--brand-color-3);
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

header {
    background: var(--brand-color-1);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
}

.logo {
    max-width: 250px;
    max-height: 100px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.logo-container.hidden {
    display: none;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    padding: 40px;
}

.input-section, .tracking-section, .prediction-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--brand-light);
    border-radius: 15px;
}

h2 {
    font-family: var(--font-heading);
    color: var(--brand-color-1);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

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

.btn-primary {
    background: var(--brand-color-1);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3em;
}

.stain-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stain-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--brand-color-1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.stain-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stain-type {
    font-weight: 600;
    color: var(--brand-color-1);
    text-transform: capitalize;
    font-size: 1.1em;
}

.delete-btn {
    background: var(--brand-color-3);
    color: var(--brand-text);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

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

.stain-details {
    font-size: 0.9em;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stain-detail {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

.summary-stats {
    margin-top: 30px;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--brand-color-1);
}

.prediction-section {
    text-align: center;
}

.prediction-result {
    margin-top: 30px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profession-name {
    font-family: var(--font-heading);
    font-size: 2.5em;
    font-weight: 700;
    color: var(--brand-color-1);
    margin: 20px 0;
    text-transform: capitalize;
}

.insight-text {
    font-size: 1.1em;
    color: #666;
    margin: 15px 0 25px 0;
    line-height: 1.8;
    font-style: italic;
    padding: 15px;
    background: var(--brand-color-3);
    border-left: 4px solid var(--brand-color-1);
    border-radius: 5px;
}

.insight-line {
    margin: 5px 0;
}

.profession-description {
    font-size: 1.2em;
    color: #555;
    margin: 20px 0;
    line-height: 1.6;
}

.traits-list {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.trait-badge {
    background: var(--brand-color-2);
    color: var(--brand-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.cta-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--brand-color-3);
    border-radius: 15px;
    text-align: center;
}

.cta-text {
    font-size: 1.1em;
    color: var(--brand-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.cta-link {
    display: inline-block;
    background: var(--brand-color-1);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(183, 208, 83, 0.4);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    main {
        padding: 20px;
    }
    
    .input-section, .tracking-section, .prediction-section {
        padding: 20px;
    }
    
    .profession-name {
        font-size: 2em;
    }
}

