/* App Guide & FAQ Section Styles */

.app-guide-section {
    position: relative;
    overflow: hidden;
}

/* App Info Card */
.app-info-card {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 140, 0, 0.05));
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.app-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 69, 0, 0.5);
}

.app-info-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.app-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff4500, #ff6b00);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.app-details h3 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Russo One', sans-serif;
}

.app-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 0.95em;
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.app-security-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 25px;
    color: #4CAF50;
    font-size: 0.9em;
    transition: all 0.3s;
}

.security-badge:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.security-badge i {
    font-size: 1.2em;
}

/* FAQ Container */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.faq-item:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item:hover {
    border-color: rgba(255, 69, 0, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.faq-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    user-select: none;
}

.faq-header:hover {
    background: rgba(255, 69, 0, 0.05);
}

.faq-header h3 {
    color: #fff;
    font-size: 1.3em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.faq-header h3 i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.faq-icon {
    color: var(--primary-color);
    font-size: 1.2em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding-top 0.5s ease, 
                padding-bottom 0.5s ease;
    padding: 0 30px;
}

.faq-item.active .faq-content {
    max-height: 10000px;
    padding-top: 20px;
    padding-bottom: 25px;
}

.faq-body {
    color: #ccc;
    line-height: 1.8;
    padding-top: 20px;
}

.faq-body p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* Game Visual */
.game-visual {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.mini-cards {
    display: flex;
    gap: 10px;
}

.mini-card {
    width: 60px;
    height: 85px;
    background: linear-gradient(145deg, #fff, #f5f5f5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: cardFloat 2s ease-in-out infinite;
}

.mini-card:nth-child(2) {
    animation-delay: 0.2s;
    transform: translateY(-5px);
}

.mini-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mini-card.red {
    color: #c41e3a;
}

.mini-card.black {
    color: #1a1a1a;
}

.hand-label {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.tip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 69, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4500, #ff6b00);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.tip-card h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.tip-card p {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Winning Note */
.winning-note {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #ffd700;
    border-radius: 10px;
    margin-top: 20px;
}

.winning-note i {
    color: #ffd700;
    font-size: 1.5em;
    flex-shrink: 0;
}

.winning-note p {
    color: #ffd700;
    margin: 0;
    font-weight: 500;
}

/* Rules List */
.rules-list {
    margin: 25px 0;
}

.rule-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.rule-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff4500, #ff6b00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.rule-content h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.rule-content p {
    color: #bbb;
    line-height: 1.6;
    margin: 0;
}

/* Hand Rankings */
.hand-rankings {
    margin-top: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.rank-badge {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-badge.highest {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.ranking-item strong {
    color: #fff;
    margin-right: 5px;
}

/* Rules Note */
.rules-note {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 69, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    margin-top: 20px;
}

.rules-note i {
    color: var(--primary-color);
    font-size: 1.5em;
    flex-shrink: 0;
}

.rules-note p {
    color: #ff8c00;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-specs {
        grid-template-columns: 1fr;
    }
    
    .app-security-badges {
        justify-content: center;
    }
    
    .faq-header {
        padding: 20px;
    }
    
    .faq-header h3 {
        font-size: 1.1em;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .rule-item {
        flex-direction: column;
        text-align: center;
    }
    
    .game-visual {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .app-info-card {
        padding: 20px;
    }
    
    .app-details h3 {
        font-size: 1.5em;
    }
    
    .faq-header {
        padding: 15px;
    }
    
    .faq-header h3 {
        font-size: 1em;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .faq-item.active .faq-content {
        padding: 0 15px 20px;
    }
}
