/* ===================================
   Rules Page Styles
   Old West Notice Board Theme
   =================================== */

/* Rules Hero Section */
.rules-hero {
    margin-top: 90px;
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/rules-bg.jpg') center/cover no-repeat;
    text-align: center;
    border-bottom: 3px solid var(--primary-gold);
}

.rules-hero-content h1 {
    font-family: 'Rye', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--primary-gold);
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px var(--shadow-dark);
}

.rules-hero-content p {
    font-size: 18px;
    color: var(--cream);
    font-style: italic;
}

/* Rules Section */
.rules-section {
    padding: 80px 0;
    background: var(--leather-brown);
}

/* Notice Board Header */
.notice-board-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(43, 24, 16, 0.9) 0%, rgba(61, 40, 23, 0.9) 100%);
    border: 3px solid var(--primary-gold);
    position: relative;
}

.notice-board-header::before,
.notice-board-header::after {
    content: '★';
    position: absolute;
    top: -15px;
    font-size: 30px;
    color: var(--primary-gold);
}

.notice-board-header::before {
    left: 20px;
}

.notice-board-header::after {
    right: 20px;
}

.board-title {
    font-family: 'Rye', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cream);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.star-accent {
    color: var(--primary-gold);
    margin: 0 15px;
}

.board-subtitle {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Rules Board - Styled as Notice Board with Parchment Background */
.rules-board {
    background: url('../images/parchment-bg.png') center/cover no-repeat,
                linear-gradient(135deg, #d4a574 0%, #c9954d 50%, #d4a574 100%);
    border: none;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6),
                inset 0 0 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    position: relative;
    padding: 40px;
    clip-path: polygon(
        1% 0%, 99% 0%, 100% 1%, 100% 99%, 99% 100%, 1% 100%, 0% 99%, 0% 1%
    );
}

/* Parchment texture overlay effect */
.rules-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.02) 1px,
            rgba(0, 0, 0, 0.02) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.015) 1px,
            rgba(0, 0, 0, 0.015) 2px
        );
    pointer-events: none;
    opacity: 0.4;
    clip-path: polygon(
        1% 0%, 99% 0%, 100% 1%, 100% 99%, 99% 100%, 1% 100%, 0% 99%, 0% 1%
    );
}

/* Nail/Pin decorations */
.rules-board::after {
    content: '📌';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 30px;
    transform: rotate(15deg);
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
}

.board-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.4);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.board-header h2 {
    font-family: 'Rye', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.board-content {
    position: relative;
    z-index: 1;
}

/* Individual Rule Items */
.rule-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: transparent;
    border-left: none;
    transition: all 0.3s;
    border-radius: 0;
}

.rule-item:hover {
    background: transparent;
    border-left-color: transparent;
    transform: translateX(5px);
    box-shadow: none;
}

.rule-number {
    font-family: 'Rye', serif;
    font-size: 28px;
    color: #1a1a1a;
    font-weight: bold;
    min-width: 40px;
    flex-shrink: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.rule-text {
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.2);
}

.rule-text strong {
    font-family: 'Cinzel', serif;
    color: #1a1a1a;
    font-size: 16px;
    display: inline;
    margin-bottom: 0;
    font-weight: 600;
}

/* Danger Board for Prohibited Actions */
.rules-board.danger {
    background: url('../images/parchment-bg.png') center/cover no-repeat,
                linear-gradient(135deg, #d89b85 0%, #c97b5e 50%, #b5614a 100%);
}

.rules-board.danger .board-header {
    border-bottom-color: rgba(139, 0, 0, 0.6);
}

.rules-board.danger .board-header h2 {
    color: #8b0000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
}

.rules-board.danger .rule-item {
    border-left-color: transparent;
    background: transparent;
}

.rules-board.danger .rule-item:hover {
    border-left-color: transparent;
    box-shadow: none;
    background: transparent;
}

.rules-board.danger .rule-number {
    color: #8b0000;
}

.rules-board.danger .rule-text strong {
    color: #8b0000;
}

/* Closing Notice */
.closing-notice {
    background: linear-gradient(135deg, rgba(43, 24, 16, 0.95) 0%, rgba(61, 40, 23, 0.95) 100%);
    border: 3px solid var(--primary-gold);
    padding: 40px;
    text-align: center;
    margin-top: 60px;
}

.closing-notice p {
    font-size: 16px;
    color: var(--cream);
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}

.notice-footer {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rules-hero {
        padding: 60px 20px;
    }
    
    .notice-board-header {
        padding: 30px 15px;
    }
    
    .rules-board {
        padding: 20px;
    }
    
    .rule-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .rule-number {
        font-size: 24px;
    }
    
    .closing-notice {
        padding: 30px 20px;
    }
    
    .notice-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .notice-footer .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .board-title {
        font-size: 1.5rem;
    }
    
    .rule-text {
        font-size: 15px;
    }
}