/* assets/mahasatta.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

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

.mahasatta-container {
    font-family: 'Noto Sans Thai', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    border-radius: 10px;
    margin: 20px 0;
}

.mahasatta-container .mahasatta-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.mahasatta-container .mahasatta-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
    animation: mahasatta-shimmer 20s linear infinite;
}

@keyframes mahasatta-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mahasatta-container .mahasatta-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.mahasatta-container .mahasatta-header p {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.mahasatta-container .mahasatta-main-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mahasatta-container .mahasatta-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(52, 73, 94, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.mahasatta-container .mahasatta-form-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
}

.mahasatta-container .mahasatta-form-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

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

.mahasatta-container .mahasatta-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1rem;
}

.mahasatta-container .mahasatta-form-group input,
.mahasatta-container .mahasatta-form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.mahasatta-container .mahasatta-form-group input:focus,
.mahasatta-container .mahasatta-form-group select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.mahasatta-container .mahasatta-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.mahasatta-container .mahasatta-fortune-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.mahasatta-container .mahasatta-fortune-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.mahasatta-container .mahasatta-fortune-btn:active {
    transform: translateY(-1px);
}

.mahasatta-container .mahasatta-results-section {
    animation: mahasatta-fadeInUp 0.6s ease;
}

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

.mahasatta-container .mahasatta-results-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mahasatta-container .mahasatta-results-content {
    border: 1px solid #e9ecef;
    border-top: none;
    padding: 30px;
    border-radius: 0 0 10px 10px;
    background: white;
}

.mahasatta-container .mahasatta-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    border-left: 5px solid #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mahasatta-container .mahasatta-info-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.mahasatta-container .mahasatta-info-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(52, 73, 94, 0.1);
    transition: all 0.3s ease;
}

.mahasatta-container .mahasatta-info-item:hover {
    padding-left: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 5px;
}

.mahasatta-container .mahasatta-info-item:last-child {
    border-bottom: none;
}

.mahasatta-container .mahasatta-prediction-section {
    margin-bottom: 25px;
    padding: 25px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.mahasatta-container .mahasatta-prediction-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mahasatta-container .mahasatta-prediction-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    font-size: 1.2rem;
}

.mahasatta-container .mahasatta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mahasatta-container .mahasatta-table th,
.mahasatta-container .mahasatta-table td {
    border: 1px solid #e9ecef;
    padding: 12px 8px;
    text-align: center;
}

.mahasatta-container .mahasatta-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    font-weight: 600;
}

.mahasatta-container .mahasatta-table .mahasatta-highlight {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    font-weight: bold;
    color: #2c3e50;
    animation: mahasatta-glow 2s ease-in-out infinite alternate;
}

@keyframes mahasatta-glow {
    from { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    to { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

.mahasatta-container .mahasatta-yearly-prediction {
    background: linear-gradient(135deg, #e8f4ff 0%, #b3d9ff 100%);
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

.mahasatta-container .mahasatta-yearly-prediction h4 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.mahasatta-container .mahasatta-event-item {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.mahasatta-container .mahasatta-event-item:hover {
    transform: translateX(5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mahasatta-container .mahasatta-chart-container {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.mahasatta-container .mahasatta-score-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.mahasatta-container .mahasatta-legend-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mahasatta-container .mahasatta-legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mahasatta-container .mahasatta-legend-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.mahasatta-container .mahasatta-loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.1rem;
}

.mahasatta-container .mahasatta-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: mahasatta-spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

.mahasatta-container .mahasatta-fade-in {
    animation: mahasatta-fadeIn 0.8s ease;
}

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

@media (max-width: 768px) {
    .mahasatta-container .mahasatta-date-row {
        grid-template-columns: 1fr;
    }
    .mahasatta-container .mahasatta-header h1 {
        font-size: 2rem;
    }
    .mahasatta-container .mahasatta-main-content {
        padding: 20px;
    }
    .mahasatta-container .mahasatta-form-section {
        padding: 20px;
    }
}