/**
 * Weton Calculator Frontend Styles
 * Tema Jawa: Coklat, Gold, Hijau
 */

/* Container utama */
.weton-calculator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #6B4423 0%, #8B5A3C 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #D4AF37;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Header */
.weton-calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #D4AF37;
}

.weton-calculator-title {
    font-size: 2.2em;
    color: #D4AF37;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.weton-calculator-subtitle {
    color: #F5E6D3;
    font-size: 1.1em;
    font-style: italic;
}

/* Form styles */
.weton-form {
    background: rgba(245, 230, 211, 0.95);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #D4AF37;
}

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

.weton-form-label {
    display: block;
    font-weight: bold;
    color: #6B4423;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.weton-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #8B5A3C;
    border-radius: 8px;
    background: #FFF;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.weton-form-input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: #FFFEF7;
}

.weton-form-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #228B22;
}

.weton-form-button:hover {
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 139, 34, 0.4);
}

.weton-form-button:active {
    transform: translateY(0);
}

.weton-form-button:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading state */
.weton-loading {
    text-align: center;
    color: #D4AF37;
    font-weight: bold;
    padding: 20px;
}

.weton-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: #D4AF37;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Results container */
.weton-results {
    background: linear-gradient(135deg, #F5E6D3 0%, #E6D7C3 100%);
    padding: 25px;
    border-radius: 10px;
    border: 3px solid #D4AF37;
    margin-top: 20px;
    display: none;
}

.weton-results.show {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Weton display */
.weton-main-result {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #6B4423 0%, #8B5A3C 100%);
    border-radius: 10px;
    border: 2px solid #D4AF37;
}

.weton-name {
    font-size: 2.5em;
    color: #D4AF37;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.weton-date {
    color: #F5E6D3;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.weton-neptu {
    color: #D4AF37;
    font-size: 1.1em;
    font-weight: bold;
}

/* Detail sections */
.weton-detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid #228B22;
}

.weton-detail-title {
    font-size: 1.3em;
    color: #6B4423;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.weton-detail-title::before {
    content: "🌿";
    margin-right: 10px;
    font-size: 1.2em;
}

.weton-detail-content {
    color: #5A4037;
    line-height: 1.6;
    font-size: 1em;
}

/* Lists */
.weton-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.weton-list-item {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    border: 1px solid #228B22;
}

/* Error messages */
.weton-error {
    background: #FFE6E6;
    color: #CC0000;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #CC0000;
    margin: 15px 0;
    font-weight: bold;
}

/* Success messages */
.weton-success {
    background: #E8F5E8;
    color: #228B22;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #228B22;
    margin: 15px 0;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .weton-calculator-container {
        margin: 10px;
        padding: 20px;
    }
    
    .weton-calculator-title {
        font-size: 1.8em;
    }
    
    .weton-name {
        font-size: 2em;
    }
    
    .weton-form,
    .weton-results {
        padding: 20px;
    }
    
    .weton-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .weton-calculator-container {
        padding: 15px;
    }
    
    .weton-calculator-title {
        font-size: 1.6em;
    }
    
    .weton-name {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    .weton-form-input,
    .weton-form-button {
        padding: 12px;
        font-size: 1em;
    }
}

/* Print styles */
@media print {
    .weton-calculator-container {
        box-shadow: none;
        border: 1px solid #000;
        background: white !important;
    }
    
    .weton-form-button {
        display: none;
    }
    
    .weton-main-result,
    .weton-detail-section {
        background: white !important;
        color: black !important;
        border: 1px solid #000 !important;
    }
    
    .weton-name,
    .weton-calculator-title {
        color: black !important;
        text-shadow: none !important;
    }
}