
/* Community Guidelines Specific Styles */

/* Main Content */
.page-container {
    padding-top: 100px;
    min-height: 100vh;
}

.guidelines-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

/* Table of Contents */
.toc-sidebar {
    position: sticky;
    top: 140px;
    height: calc(100vh - 160px);
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.toc-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 2px solid var(--light-gray);
    flex-shrink: 0;
}

.toc-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.toc-nav::-webkit-scrollbar {
    width: 6px;
}

.toc-nav::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.toc-nav::-webkit-scrollbar-thumb {
    background: var(--english-red);
    border-radius: 3px;
}

.toc-nav::-webkit-scrollbar-thumb:hover {
    background: #8B4340;
}

.toc-list {
    list-style: none;
    padding: 0 2rem 1rem 2rem;
}

.toc-item {
    margin-bottom: 0.75rem;
}

.toc-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

.toc-link:hover,
.toc-link.active {
    background: var(--english-red);
    color: white;
    transform: translateX(5px);
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-image {
    margin: 2rem 0;
}

.guidelines-hero {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Introduction Section */
.intro-section {
    background: linear-gradient(135deg, var(--beige), white);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    border-left: 5px solid var(--english-red);
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.intro-text:last-child {
    margin-bottom: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    scroll-margin-top: 140px;
}

.guideline-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guideline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--english-red), var(--accent-gold));
}

.guideline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(160, 82, 79, 0.15);
    border-color: var(--english-red);
}

.guideline-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.guideline-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

/* Special Sections */
.special-section {
    background: linear-gradient(135deg, var(--english-red), #8B4340);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(160, 82, 79, 0.3);
}

.special-section .section-title {
    color: white;
    margin-bottom: 2rem;
}

.special-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.special-section p:last-child {
    margin-bottom: 0;
}

/* Reporting Section */
.reporting-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Impact Section */
.impact-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Guideline Items Color Variations */
.guideline-item:nth-child(4n+1) {
    border-left: 4px solid #ff6b6b;
}

.guideline-item:nth-child(4n+2) {
    border-left: 4px solid #4ecdc4;
}

.guideline-item:nth-child(4n+3) {
    border-left: 4px solid #45b7d1;
}

.guideline-item:nth-child(4n+4) {
    border-left: 4px solid var(--accent-gold);
}

/* Hover effects for different guideline items */
.guideline-item:nth-child(4n+1):hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), white);
}

.guideline-item:nth-child(4n+2):hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05), white);
}

.guideline-item:nth-child(4n+3):hover {
    background: linear-gradient(135deg, rgba(69, 183, 209, 0.05), white);
}

.guideline-item:nth-child(4n+4):hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), white);
}

.nav-logo {
    text-decoration: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .guidelines-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .toc-sidebar {
        position: static;
        order: 2;
        margin-top: 2rem;
        height: auto;
        max-height: 50vh;
    }
    
    .toc-nav {
        max-height: 40vh;
    }
    
    .content-area {
        order: 1;
        padding: 2rem;
    }
    
    .page-header {
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .guidelines-hero {
        padding-top: 120px;
        max-width: 100%;
    }
    
    .intro-section {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .intro-text {
        font-size: 1rem;
        text-align: left;
    }
    
    .guideline-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .guideline-item p {
        font-size: 1rem;
    }
    
    .special-section {
        padding: 2rem;
    }
    
    .special-section p {
        font-size: 1rem;
    }
    
    .toc-title {
        text-align: center;
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .toc-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
        padding: 0 1rem 1rem 1rem;
    }
    
    .toc-link {
        text-align: center;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .guideline-icon {
        font-size: 2rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .toc-sidebar,
    .footer {
        display: none;
    }
    
    .guidelines-container {
        grid-template-columns: 1fr;
        max-width: none;
        padding: 0;
    }
    
    .content-area {
        box-shadow: none;
        padding: 0;
    }
    
    .page-container {
        padding-top: 0;
    }
    
    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .guideline-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .special-section {
        background: #f0f0f0 !important;
        color: black !important;
    }
}
