/* Democraft Page Styles - Yellow and Purple Theme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.3) 0%, 
        rgba(0, 255, 255, 0.1) 50%, 
        rgba(220, 20, 60, 0.4) 100%);
    z-index: -1;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 0, 0, 0.1) 0%, transparent 50%);
    animation: bgAnimation 20s ease-in-out infinite alternate;
}

@keyframes bgAnimation {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: rotate(5deg) scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: rotate(-5deg) scale(1);
        opacity: 0.7;
    }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 50px;
    flex: 1;
    animation: fadeIn 1.5s ease-out;
}

.welcome-text {
    flex: 1;
    max-width: 500px;
}

.welcome-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #FF0000, #00FFFF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.welcome-description {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #FF0000, #DC143C);
    color: #00FFFF;
    border-color: #00FFFF;
    box-shadow: 0 5px 25px rgba(255, 0, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 0, 0, 0.6);
    background: linear-gradient(45deg, #DC143C, #FF0000);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Logo Section (Middle) */
.logo-middle {
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 3px solid #00FFFF;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.8);
}

.server-name {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    background: linear-gradient(45deg, #00FFFF, #00CED1, #00FFFF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.obelisk-text {
    font-size: 2.5rem;
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #00FFFF, #00CED1, #00FFFF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

.democraft-text {
    font-size: 3rem;
}

@keyframes glow {
    from {
        text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 40px rgba(0, 255, 255, 0.8), 0 0 60px rgba(255, 0, 0, 0.6);
    }
}

.server-subtitle {
    font-size: 1.2rem;
    color: #b8b8b8;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Featured Image */
.featured-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #00FFFF;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.8), 0 0 80px rgba(255, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

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

/* Rules Section */
.rules-section {
    min-height: auto;
    padding: 20px;
    padding-top: 80px;
    padding-bottom: 120px;
    display: none;
}

.rules-container {
    max-width: 1200px;
    margin: 0 auto;
}

.rules-content {
    margin-top: 40px;
}

/* 3 Column Layout */
.rules-columns {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.rule-column {
    flex: 1;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #FF0000;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rule-column:hover {
    border-color: #00FFFF;
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.3);
}

.rule-header {
    background: linear-gradient(45deg, #FF0000, #DC143C);
    color: #00FFFF;
    padding: 20px;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rule-header i {
    font-size: 1.5rem;
}

.rule-header h3 {
    margin: 0;
}

.rule-content {
    padding: 30px;
    background: rgba(10, 10, 10, 0.9);
}

.rule-dropdown {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #FF0000;
    transition: all 0.3s ease;
}

.rule-dropdown:hover {
    border-color: #00FFFF;
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.3);
}

.dropdown-btn {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(45deg, #FF0000, #DC143C);
    color: #00FFFF;
    border: none;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-btn:hover {
    background: linear-gradient(45deg, #DC143C, #FF0000);
    transform: translateY(-2px);
}

.dropdown-btn i:first-child {
    margin-right: 15px;
    font-size: 1.5rem;
}

.dropdown-btn i:last-child {
    transition: transform 0.3s ease;
}

.dropdown-btn.active i:last-child {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(10, 10, 10, 0.9);
}

.dropdown-content.show {
    max-height: 2000px;
}

.rule-content {
    padding: 30px;
}

.rule-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00FFFF;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    border-left: 3px solid #FF0000;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.rule-list li:hover {
    border-left-color: #00FFFF;
    padding-left: 25px;
    color: #00FFFF;
}

.rule-list li:before {
    content: '▸';
    position: absolute;
    left: 5px;
    color: #FF0000;
    font-weight: bold;
    transition: color 0.3s ease;
}

.rule-list li:hover:before {
    color: #00FFFF;
}

.sub-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 10px 20px;
}

.sub-list li {
    border-left: 2px solid #DC143C;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.sub-list li:before {
    content: '•';
    left: 3px;
}

.rule-warning {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00FFFF;
    border-radius: 10px;
    text-align: center;
    color: #00FFFF;
    font-size: 1.1rem;
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    }
}

/* Responsive Rules */
@media (max-width: 768px) {
    .rules-section {
        padding: 20px 15px;
    }
    
    .rules-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .rule-column {
        margin-bottom: 20px;
    }
    
    .rule-header {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .rule-content {
        padding: 20px;
    }
    
    .dropdown-btn {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .rule-content {
        padding: 20px;
    }
    
    .rule-content h3 {
        font-size: 1.5rem;
    }
    
    .rule-list li {
        font-size: 0.9rem;
    }
}

/* Server Information */
.server-info {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 16px;
}

.info-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00FFFF;
    text-decoration: underline;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.4;
}

.info-list li:before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: #00FFFF;
    font-size: 1rem;
}

/* Bottom Navigation */
.bottom-nav {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-top: 2px solid #FF0000;
    padding: 20px 0;
    animation: fadeInUp 1s ease-out;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #b8b8b8;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 10px;
    position: relative;
}

.nav-item:hover {
    color: #00FFFF;
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-2px);
}

.nav-item.active {
    color: #00FFFF;
    background: rgba(255, 0, 0, 0.3);
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Particles Effect */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00FFFF;
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 19s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 8s;
    animation-duration: 21s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 10s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 12s;
    animation-duration: 23s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 14s;
    animation-duration: 20s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .welcome-text {
        max-width: 600px;
    }
    
    .image-frame {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .server-name {
        font-size: 2.5rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .image-frame {
        width: 300px;
        height: 300px;
    }
    
    .nav-container {
        gap: 15px;
    }
    
    .nav-item {
        padding: 8px 12px;
    }
    
    .nav-item i {
        font-size: 1rem;
    }
    
    .nav-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px;
    }
    
    .server-name {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-description {
        font-size: 1rem;
    }
    
    .image-frame {
        width: 250px;
        height: 250px;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .nav-container {
        gap: 10px;
    }
    
    .nav-item {
        padding: 6px 10px;
    }
    
    .nav-item span {
        display: none;
    }
}
