/* Enhanced Responsive Styles - Version 5.0 */
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f0f0f0;
    color: #232323;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1rem; /* 16px base */
}

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

/* Top Bar Styles (Black Line) - Updated Version 2.0 */
.top-bar {
    background: #000000;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    z-index: 102;
    position: relative;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-bar-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Press Start 2P', 'Courier Prime', monospace;
    font-size: 0.55rem;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.2rem 0.4rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.discord-link svg {
    fill: currentColor;
}

.top-bar-link:hover {
    color: #8bc34a;
}

/* Header Styles (Gray Line) */
.header {
    background: #1a1a1a;
    border-bottom: 3px solid #388e3c;
    padding: 1rem 0;
    position: relative;
    z-index: 101;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', 'Courier Prime', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    color: #f0f0f0;
    letter-spacing: 0.5px;
    text-decoration: none;
    line-height: 1;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f0f0f0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #8bc34a;
}

/* Main Content */
.main {
    padding: 3rem 0;
    flex: 1;
    padding-bottom: 80px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem); /* Responsive font size */
    color: #232323;
    margin-bottom: 2rem;
}

/* Search Form */
.search-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    background: white;
    border: 2px solid #388e3c;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.edition-select {
    background: #f0f0f0;
    border: 1px solid #388e3c;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    color: #232323;
    cursor: pointer;
    min-width: 140px;
}

.server-input {
    flex: 1;
    border: 1px solid #388e3c;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    background: #f0f0f0;
    border-radius: 6px;
}

.server-input::placeholder {
    color: #666;
}

.submit-btn {
    background: #388e3c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #2e7b32;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Server Result */
.server-result {
    margin: 2rem 0;
}

.result-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #388e3c;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 2px solid #388e3c;
    background: #232323;
    color: #f0f0f0;
}

.result-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.status-badge.online {
    background: #388e3c;
    color: white;
}

.status-badge.offline {
    background: #d32f2f;
    color: white;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-badge.online .status-dot {
    background: #8bc34a;
}

.status-badge.offline .status-dot {
    background: #ff5252;
}

.result-content {
    padding: 1.5rem;
    background: white;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #388e3c;
}

.info-value {
    color: #232323;
}

.server-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid #388e3c;
    background: white;
    padding: 4px;
}

.motd {
    background: #000;
    color: #fff;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: pre-wrap;
    border: 1px solid #388e3c;
}

/* Sample Servers */
.sample-servers {
    margin: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 1.75rem); /* Responsive section titles */
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    color: #232323;
    font-size: clamp(1rem, 2vw, 1.1rem); /* Responsive subtitles */
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
    position: relative;
    min-height: 80px;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-color: #388e3c;
}

.server-card.java {
    border-left: 4px solid #388e3c;
}

.server-card.bedrock {
    border-left: 4px solid #3b82f6;
}

.server-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.server-status.online {
    background: #388e3c;
}

.server-status.offline {
    background: #d32f2f;
}

.server-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.server-name {
    font-weight: 600;
    color: #232323;
    font-size: 1rem;
}

.server-ip {
    color: #666;
    font-size: 0.875rem;
    font-family: 'Courier Prime', monospace;
}

.server-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.server-badge.java {
    background: #388e3c;
    color: white;
}

.server-badge.bedrock {
    background: #3b82f6;
    color: white;
}

/* MOTD Generator Specific Styles */
.motd-generator {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.generator-card, .preview-card, .output-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #388e3c;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    font-weight: 600;
    color: #232323;
    margin-bottom: 0.5rem;
}

.motd-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #388e3c;
    border-radius: 6px;
    font-size: 1rem;
    background: #f0f0f0;
    transition: all 0.3s ease;
}

.motd-input:focus {
    outline: none;
    border-color: #2e7b32;
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.2);
}

.color-buttons, .format-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.color-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #232323;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.format-btn {
    padding: 0.5rem 1rem;
    background: #232323;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.format-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

.preview-card h3, .output-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #232323;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #388e3c;
    padding-bottom: 0.5rem;
}

.motd-preview {
    background: #000;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    border: 2px solid #388e3c;
}

.output-container {
    position: relative;
}

.output-text {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid #388e3c;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    min-height: 120px;
    resize: vertical;
    background: #f0f0f0;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #388e3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #2e7b32;
    transform: translateY(-2px);
}

/* Tools Page */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #232323;
    transition: all 0.3s ease;
    border: 2px solid #388e3c;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: #2e7b32;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #388e3c;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #232323;
}

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.external-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-top: auto;
}

/* Content Pages */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-card {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #388e3c;
    line-height: 1.8;
}

.content-card h2 {
    color: #388e3c;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #388e3c;
    padding-bottom: 0.5rem;
}

.content-card h3 {
    color: #232323;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.content-card p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* About Us Section */
.about-section {
    margin: 4rem 0;
    text-align: center;
    scroll-margin-top: 100px; /* Offset for fixed header */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #388e3c;
}

.about-content h2 {
    color: #388e3c;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Partners Section */
.partners-section {
    margin: 4rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #388e3c;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    word-wrap: break-word;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.partner-logo {
    width: 80px;
    height: 80px;
    background: #388e3c;
    border-radius: 8px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.partner-card h3 {
    color: #388e3c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.partner-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.partner-link {
    display: inline-block;
    background: #388e3c;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.partner-link:hover {
    background: #2e7b32;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* MineComunidad Footer Styles */
.minecomunidad-footer {
    background: #1a1a1a;
    color: #ffffff;
    margin-top: auto;
    padding: 40px 0 0;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-section {
    margin-bottom: 0;
    text-align: left;
}

.footer-title {
    color: #8bc34a;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-posts li {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-posts li:last-child {
    margin-bottom: 0;
}

.footer-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.post-preview {
    flex-shrink: 0;
}

.post-thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    background: #333;
}

.post-content {
    flex: 1;
}

.footer-post-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
}

.footer-post-link:hover {
    color: #8bc34a;
}

.post-date {
    color: #888;
    font-size: 11px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 0;
    font-weight: normal;
    display: flex;
    align-items: center;
    text-align: left;
    line-height: 1.2;
}

.social-link svg {
    fill: currentColor;
    flex-shrink: 0;
}

.social-link:hover {
    color: #8bc34a;
}

.footer-main {
    background: #111111;
    padding: 30px 0;
    border-top: 1px solid #333;
}

.footer-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}

.footer-links-vertical {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    width: fit-content !important;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    padding: 0;
    font-weight: normal;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
}

.footer-link:hover {
    color: #8bc34a;
}

.footer-copyright {
    color: #888;
    font-size: 11px;
    margin: 0;
    font-weight: normal;
}

.footer-copyright a {
    color: #8bc34a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #a9d470;
    text-decoration: underline;
}

.footer-bottom {
    background: #000000;
    padding: 20px 0;
    border-top: 1px solid #333;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #888;
    font-size: 11px;
    margin: 0;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #888;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #8bc34a;
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .servers-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
    }
    
    .servers-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .server-name {
        font-size: 0.95rem;
    }
    
    .server-ip {
        font-size: 0.8rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .partner-card h3 {
        font-size: 1.4rem;
    }
    
    .partner-card p {
        font-size: 0.95rem;
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .nav {
        padding: 0.9rem;
    }
    
    .nav-links {
        gap: 1.25rem;
    }
    
    .servers-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .server-card {
        padding: 1.1rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links,
    .footer-links-vertical {
        flex-direction: column;
        gap: 10px;
        align-items: center !important;
        width: 100% !important;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Typography responsive */
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .server-input {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }
    
    .submit-btn {
        font-size: 0.95rem;
        padding: 0.7rem 1.5rem;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .info-label {
        font-size: 0.9rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    /* Top bar responsive */
    .top-bar {
        padding: 0.5rem 1rem;
    }
    
    .top-bar-right {
        gap: 0.5rem;
    }
    
    .top-bar-link {
        font-size: 0.5rem;
        padding: 0.2rem 0.3rem;
        letter-spacing: 0.2px;
    }
    
    /* Navigation responsive */
    .nav {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }
    
    .nav-logo {
        margin-bottom: 1rem;
    }
    
    .logo {
        font-size: 0.65rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* Server cards responsive */
    .servers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .server-name {
        font-size: 0.9rem;
    }
    
    .server-ip {
        font-size: 0.75rem;
    }
    
    .server-badge {
        font-size: 0.65rem;
    }
    
    /* Tools and Cards */
    .motd-generator {
        gap: 1.5rem;
    }
    
    .generator-card, .preview-card, .output-card {
        padding: 1.5rem;
    }
    
    .control-group label {
        font-size: 0.9rem;
    }
    
    .motd-input {
        font-size: 0.95rem;
        padding: 0.85rem;
    }
    
    /* Partners responsive */
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .partner-card {
        padding: 1.5rem;
    }
    
    .partner-card h3 {
        font-size: 1.3rem;
    }
    
    .partner-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .partner-link {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Enhanced Typography for Mobile */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .edition-select {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
        min-width: 120px;
    }
    
    .server-input {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    /* Result Cards Mobile */
    .result-header h2 {
        font-size: 1.2rem;
    }
    
    .status-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .info-label {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .info-value {
        font-size: 0.85rem;
    }
    
    /* Top bar for mobile */
    .top-bar {
        padding: 0.5rem;
    }
    
    .top-bar-right {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
    
    .top-bar-link {
        font-size: 0.45rem;
        padding: 0.15rem 0.3rem;
        letter-spacing: 0.1px;
    }
    
    /* Navigation for mobile */
    .nav {
        padding: 0.75rem;
    }
    
    .logo {
        font-size: 0.6rem;
        gap: 0.4rem;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        font-weight: 500;
    }
    
    /* Server cards for mobile */
    .server-card {
        padding: 1rem;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .server-name {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .server-ip {
        font-size: 0.7rem;
    }
    
    .server-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
        letter-spacing: 0.3px;
    }
    
    /* About and Content sections */
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .about-content p {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .content-card {
        padding: 2rem;
    }
    
    .content-card h2 {
        font-size: 1.75rem;
    }
    
    .content-card h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .content-card p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Partners section mobile */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partner-card {
        padding: 1.25rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .partner-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .partner-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.85rem;
    }
    
    .partner-card p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    
    .partner-link {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        font-weight: 600;
    }
    
    /* Tools and Generator mobile */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.85rem;
    }
    
    .tool-card p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .motd-generator {
        gap: 1.25rem;
    }
    
    .generator-card, .preview-card, .output-card {
        padding: 1.25rem;
    }
    
    .control-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .motd-input {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .format-btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
    
    .copy-btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
    
    .output-text {
        font-size: 0.8rem;
        padding: 1.25rem;
        min-height: 100px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    html {
        font-size: 14px; /* Slightly smaller base font */
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .top-bar-link {
        font-size: 0.4rem;
        padding: 0.1rem 0.25rem;
    }
    
    .logo {
        font-size: 0.55rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo img {
        width: 24px;
        height: 24px;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .server-card {
        padding: 0.85rem;
        gap: 0.6rem;
    }
    
    .server-name {
        font-size: 0.8rem;
    }
    
    .server-ip {
        font-size: 0.65rem;
    }
    
    .server-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.5rem;
    }
    
    .partner-card {
        padding: 1rem;
    }
    
    .partner-logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .partner-card h3 {
        font-size: 1.15rem;
    }
    
    .partner-card p {
        font-size: 0.8rem;
    }
    
    .partner-link {
        font-size: 0.75rem;
        padding: 0.55rem 1rem;
    }
    
    /* Top bar responsive */
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-bar-left,
    .top-bar-right {
        justify-content: center;
    }
    
    .top-bar-link {
        font-size: 0.45rem;
    }
    
    .discord-link svg {
        width: 12px;
        height: 12px;
    }
    
    /* Footer responsive */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-post-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .post-thumbnail {
        width: 80px;
        height: 60px;
        margin: 0 auto;
    }
    
    .footer-social {
        align-items: center;
    }
    
    .social-link svg {
        width: 14px;
        height: 14px;
    }
}