/* Scoped styles for Age Calculator App */

:root {
    --age-bg: rgba(23, 23, 23, 0.7);
    --age-primary: #ec4899;
    /* Pink-500 */
    --age-primary-hover: #db2777;
    /* Pink-600 */
    --age-border: rgba(255, 255, 255, 0.1);
}

.app-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-card {
    background: var(--age-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--age-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    min-height: 600px;
    margin-top: 2rem;
}

/* Common Section Styles */
.io-section {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Left Section */
.io-section:first-child {
    border-right: 1px solid var(--age-border);
}

.output-section {
    background: rgba(0, 0, 0, 0.2);
}

.brand {
    margin-bottom: 2rem;
}

.brand h1 {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(to right, #f9a8d4, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.brand p {
    color: #94a3b8;
    font-size: 1rem;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="date"] {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--age-border);
    padding: 1rem;
    border-radius: 12px;
    color: #f8fafc;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

input[type="date"]:focus {
    border-color: var(--age-primary);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

button {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

#calculate-btn {
    background: linear-gradient(135deg, var(--age-primary), var(--age-primary-hover));
    color: white;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--age-border);
    color: #e2e8f0;
}

button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #cbd5e1;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-header label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Results */
.results-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.placeholder-text {
    color: #64748b;
    font-size: 1rem;
    text-align: center;
    margin-top: 4rem;
}

.result-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--age-border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
}

.primary-result {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(219, 39, 119, 0.1));
    border-color: rgba(236, 72, 153, 0.3);
    padding: 1.5rem;
}

.result-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.result-value {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 600;
}

.age-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
}

.age-num {
    font-size: 2rem;
    color: var(--age-primary);
    font-weight: 700;
}

.age-unit {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
    margin-right: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-card {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .io-section:first-child {
        border-right: none;
        border-bottom: 1px solid var(--age-border);
    }

    .output-section {
        min-height: 400px;
    }

    .brand h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .age-num {
        font-size: 1.5rem;
    }
}
