/**
 * Divination Page Styles
 */

/* Main Container */
.divination-main {
    width: 100%;
    padding: 3rem 0;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.divination-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.divination-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: rgba(142, 202, 230, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.divination-hero h1 {
    font-size: 3rem;
    color: #14213D;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.divination-hero .subtitle {
    font-size: 1.2rem;
    color: #14213D;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2.5rem;
}

.btn-start-divination {
    display: inline-block;
    background-color: #8ECAE6;
    color: #1e3c72;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(142, 202, 230, 0.3);
}

.btn-start-divination:hover {
    background-color: #ffffff;
    color: #1e3c72;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Method Section */
.method-section {
    padding: 2rem 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Method Card */
.method-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.method-icon {
    margin-bottom: 1.5rem;
}

.method-icon i {
    font-size: 3.5rem;
    color: #9c7c38;
}

.icon-number::before {
    content: "🔢";
    font-size: 3rem;
}

.icon-coin::before {
    content: "🪙";
    font-size: 3rem;
}

.icon-time::before {
    content: "🕒";
    font-size: 3rem;
}

.method-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

.method-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-choose-method {
    display: inline-block;
    background-color: #c0392b;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-choose-method:hover {
    background-color: #a93226;
}

/* Disclaimer Section */
.disclaimer-section {
    background-color: #f5f5f5;
    padding: 3rem 0;
    margin-top: 2rem;
}

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-content h3 {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 1rem;
}

.disclaimer-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* Matter Input Section - 事项输入部分样式 */
.matter-input-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.matter-input-section h3 {
    color: #14213D;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.matter-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.matter-input-container label {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#divination-matter {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(142, 202, 230, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#divination-matter::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

#divination-matter:focus {
    outline: none;
    border-color: #8ECAE6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(142, 202, 230, 0.2);
}

.character-count {
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
}

#matter-char-count {
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Timezone Selection Enhancements - 时区选择增强样式 */
.timezone-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(142, 202, 230, 0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.timezone-select:focus {
    outline: none;
    border-color: #8ECAE6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(142, 202, 230, 0.2);
}

.timezone-select option {
    background: #2c3e50;
    color: #fff;
    padding: 5px;
}

.timezone-select optgroup {
    background: #34495e;
    color: #8ECAE6;
    font-weight: 600;
}

/* Responsive Design for Matter Input */
@media (max-width: 768px) {
    .matter-input-section {
        margin-bottom: 2rem;
        padding: 1rem;
    }
    
    .matter-input-section h3 {
        font-size: 1.2rem;
    }
    
    #divination-matter {
        font-size: 16px; /* 防止iOS缩放 */
        min-height: 70px;
    }
    
    .timezone-select {
        font-size: 14px;
        width: 100%;
    }
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .divination-hero h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .divination-hero {
        padding: 4rem 0;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .method-card {
        padding: 1.5rem;
    }
    
    .divination-hero h1 {
        font-size: 2.2rem;
    }
    
    .divination-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .btn-start-divination {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .divination-hero {
        padding: 3rem 0;
    }
    
    .divination-hero h1 {
        font-size: 1.8rem;
    }
    
    .divination-hero .subtitle {
        font-size: 1rem;
    }
    
    .btn-start-divination {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .method-title {
        font-size: 1.3rem;
    }
}

/* 强制Hidden Line左对齐并增加左边距 */
td[style*="Hidden Line"] {
    text-align: left !important;
    padding-left: 16px !important;
}

table tr td:contains("Hidden Line") {
    text-align: left !important;
    padding-left: 16px !important;
}

/* 硬币投掷按钮禁用状态 */
#btn-throw-coins:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none;
}

#btn-throw-coins:disabled:hover {
    background-color: #cccccc !important;
    color: #666666 !important;
    transform: none;
    box-shadow: none;
}
