@import url('../styles.css');

/* Hero Section - Rules Specific */
.rules-hero {
    background: linear-gradient(135deg, var(--color-accent), var(--color-dark));
    min-height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.rules-hero::before {
    content: "";
    background: url('/api/placeholder/800/400') center/cover;
    opacity: 0.15;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: slowPulse 8s infinite alternate;
}

@keyframes slowPulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.2; }
}

.page-title {
    color: var(--color-primary);
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
    text-align: center;
    color: var(--color-primary);
    font-size: 1.4rem;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 0;
    opacity: 0.9;
    font-family: 'Lora', serif;
    letter-spacing: 1px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Rules Content Section */
.rules-content {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--color-darkest), var(--color-dark), var(--color-darkest));
    position: relative;
}

.rules-intro {
    text-align: center;
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Lora', serif;
    font-style: italic;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 30px;
}

.rules-intro:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

.emoji {
    display: inline-block;
    transform: rotate(90deg);
    margin-left: 3px;
    opacity: 0.9;
}

.rules-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.rules-category {
    background: rgba(12, 15, 23, 0.7);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(226, 194, 210, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rules-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    opacity: 0.7;
}

.rules-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(226, 194, 210, 0.15);
}

.category-title {
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.category-title i {
    margin-right: 10px;
    opacity: 0.9;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.rule-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 5px 0;
    transition: transform 0.2s ease;
}

.rule-item:hover {
    transform: translateX(5px);
}

.rule-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.8;
    min-width: 50px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    background: rgba(226, 194, 210, 0.08);
    border-radius: 50%;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.rule-text {
    flex: 1;
}

.rule-text p {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 1.15rem;
}

.rule-text p:last-child {
    margin-bottom: 0;
}

.sub-rule {
    opacity: 0.85;
    font-size: 1rem;
    padding-left: 15px;
    position: relative;
}

.sub-rule:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.highlight {
    color: var(--color-primary);
    font-weight: 600;
}

/* Hard Limits Section */
.hard-limits {
    border-color: rgba(226, 100, 100, 0.2);
}

.hard-limits::before {
    background: linear-gradient(to right, #d64161, #8e2e5a);
}

.hard-limits .category-title {
    color: #ff8aa1;
}

.hard-limits .category-title:after {
    background: linear-gradient(to right, transparent, #ff8aa1, transparent);
}

.warning-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ff8aa1;
    font-weight: 500;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.limit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(226, 100, 100, 0.1);
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.limit-item:hover {
    transform: translateY(-3px);
    background: rgba(226, 100, 100, 0.15);
}

.limit-item i {
    color: #ff8aa1;
    font-size: 1.2rem;
    opacity: 0.9;
}

.limit-item span {
    font-size: 1rem;
    line-height: 1.5;
}

.full-width {
    grid-column: 1 / -1;
}

/* Premium Services Section */
.premium-services {
    border-color: rgba(194, 226, 210, 0.2);
}

.premium-services::before {
    background: linear-gradient(to right, #9c7bb3, #614e96);
}

.premium-services .category-title {
    color: #c2acd9;
}

.premium-services .category-title:after {
    background: linear-gradient(to right, transparent, #c2acd9, transparent);
}

.intro-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #c2acd9;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(156, 123, 179, 0.1);
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.service-item:hover {
    transform: translateY(-3px);
    background: rgba(156, 123, 179, 0.15);
}

.service-item i {
    color: #c2acd9;
    font-size: 1.2rem;
    opacity: 0.9;
}

.service-item span {
    font-size: 1rem;
    line-height: 1.5;
}

/* Dividers */
.rules-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    position: relative;
}

.rules-divider:before, .rules-divider:after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, transparent, rgba(226, 194, 210, 0.3), transparent);
}

.divider-icon {
    margin: 0 15px;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: rgba(12, 15, 23, 0.7);
    border: 1px solid rgba(226, 194, 210, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Important Notice */
.rules-note {
    background: rgba(98, 108, 134, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    border-left: 5px solid var(--color-primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.rules-note::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(226, 194, 210, 0.1), transparent);
    opacity: 0.5;
}

.rules-note h3 {
    color: var(--color-primary);
    font-family: 'Lora', serif;
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
}

.rules-note p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Back Home Button */
.back-home {
    text-align: center;
    margin-top: 50px;
}

.btn {
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    color: var(--color-darkest);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(226, 194, 210, 0.3);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(226, 194, 210, 0.4);
}

.btn i {
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .rules-intro {
        font-size: 1.1rem;
    }
    
    .rule-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .rule-number {
        font-size: 1.5rem;
        height: 40px;
        width: 40px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .rules-note {
        padding: 20px;
    }
    
    .limits-grid, .services-grid {
        grid-template-columns: 1fr;
    }
}