@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&family=Sarabun:wght@300;400;500;700&display=swap');

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

body {
    font-family: 'Sarabun', 'Kanit', sans-serif;
    background-color: #0c0814;
    color: #e3dff2;
    line-height: 1.6;
    cursor: url('img/wind.png') 0 0, auto;
}

/* Header & Navigation */
header {
    background-color: #140e22;
    border-bottom: 2px solid #d4af37;
    sticky: top;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: 'Kanit', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

.logo span {
    color: #b19ffb;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #e3dff2;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover, nav ul li a.active {
    color: #ffd700;
    background-color: #23193a;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 70vh;
}

/* Footer */
footer {
    background-color: #09050f;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    border-top: 1px solid #23193a;
    color: #8c85a3;
    font-size: 14px;
}

footer p {
    margin: 5px 0;
}

/* UI Components & Utilities */
h1, h2, h3 {
    font-family: 'Kanit', sans-serif;
    color: #ffd700;
    margin-bottom: 20px;
}

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

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ffd700;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Profile Card (Index Page) */
.profile-container {
    display: flex;
    background-color: #17112a;
    border-radius: 12px;
    border: 1px solid #312554;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 30px;
}

.profile-img-side {
    flex: 1;
    background: linear-gradient(135deg, #2b1b54, #120c1f);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-right: 1px solid #312554;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #312554;
    border: 4px solid #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.profile-info-side {
    flex: 2;
    padding: 40px;
}

.profile-info-side h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 5px;
}

.student-id {
    color: #ffd700;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.info-label {
    color: #b19ffb;
    font-weight: bold;
}

.info-value {
    color: #e3dff2;
}

.badge {
    display: inline-block;
    background-color: #2a1e4a;
    color: #ffd700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #ffd700;
}

/* Zodiac Grid (Zodiac Page) */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.zodiac-card {
    background-color: #17112a;
    border: 1px solid #2d224d;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.zodiac-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.zodiac-icon {
    font-size: 45px;
    margin-bottom: 15px;
    display: block;
}

.zodiac-date {
    font-size: 13px;
    color: #8c85a3;
    margin-bottom: 15px;
}

.zodiac-desc {
    font-size: 14px;
    text-align: left;
    border-top: 1px solid #2d224d;
    padding-top: 12px;
}

/* Daily Colors Table (Daily Page) */
.table-responsive {
    overflow-x: auto;
}

.lucky-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #17112a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2d224d;
}

.lucky-table th, .lucky-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #2d224d;
}

.lucky-table th {
    background-color: #23193a;
    color: #ffd700;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
}

.lucky-table tr:last-child td {
    border-bottom: none;
}

.day-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
    min-width: 80px;
    text-align: center;
}

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Tarot Cards (Tarot Page) */
.tarot-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.tarot-card {
    width: 220px;
    height: 380px;
    background-color: #1c1533;
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tarot-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.tarot-frame {
    border: 1px dashed #d4af37;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tarot-illustration {
    font-size: 60px;
    margin: 20px 0;
}

.tarot-title {
    font-family: 'Kanit', sans-serif;
    color: #ffd700;
    font-size: 18px;
    font-weight: 600;
}

.tarot-meaning {
    font-size: 13px;
    color: #c9c3e6;
    margin-top: 10px;
}

/* Contact Form (Contact Page) */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: #17112a;
    border: 1px solid #2d224d;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.contact-info-side h3 {
    margin-top: 25px;
    color: #b19ffb;
}

.contact-method {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-method-icon {
    font-size: 24px;
    color: #ffd700;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b19ffb;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: #0c0814;
    border: 1px solid #312554;
    border-radius: 6px;
    color: #e3dff2;
    font-family: 'Sarabun', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ffd700;
}

.btn-submit {
    background: linear-gradient(135deg, #d4af37, #aa8413);
    color: #0c0814;
    border: none;
    padding: 12px 30px;
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-container, .contact-wrapper {
        flex-direction: column;
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .profile-img-side {
        border-right: none;
        border-bottom: 1px solid #312554;
        padding: 20px;
    }
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}
