/* Furryville Index - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #ffd700;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-title {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #87ceeb;
}

.nav-menu a.active {
    color: #ffd700;
    font-weight: 600;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.hero-section {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 0rem;
    color: white;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.message {
    background: rgba(45, 45, 45, 0.8);
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid #87ceeb;
}

/* Database Status */
.db-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 4rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    border: 2px solid;
    transition: all 0.4s ease;
}

.db-status.db-online {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.db-status.db-offline {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.db-status.db-checking {
    background: rgba(251, 191, 36, 0.9);
    color: #1a1a1a;
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.status-icon {
    font-size: 1.1rem;
}

.status-text {
    font-weight: 600;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

/* Discord Sidebar */
.discord-sidebar {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 999;
}

.discord-sidebar h3 {
    display: none;
}

.discord-sidebar iframe {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #555;
}

.feature-card {
    background: rgba(45, 45, 45, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #555;
}

.card-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s ease, box-shadow 0.9s ease;
}

.feature-button {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.feature-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #c0c0c0;
    line-height: 1.6;
}

/* Shop Grid Section */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.shop-card {
    background: rgba(45, 45, 45, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #555;
}

.shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(135, 206, 235, 0.2);
    border-color: #87ceeb;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.shop-header h3 {
    color: #ffd700;
    margin: 0;
    font-size: 1.2rem;
}

.shop-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.shop-status.open {
    background-color: #87ceeb;
    color: #1a1a1a;
}

.shop-status.closed {
    background-color: #ff6b6b;
    color: white;
}

.shop-description {
    color: #c0c0c0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.shop-details {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.shop-details p {
    margin: 0.5rem 0;
}

.shop-details strong {
    color: #ffd700;
}

/* Shop Section & Table Styles */
.shop-section {
    margin: 2rem 0;
}

.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: center;
}

.search-input {
    flex: 1;
    max-width: 400px;
    padding: 0.8rem 1rem;
    border: 2px solid #555;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(45, 45, 45, 0.9);
    color: #e0e0e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #87ceeb;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
}

.search-input::placeholder {
    color: #888;
}

.clear-btn {
    padding: 0.8rem 1.5rem;
    background: #ffd700;
    color: #1a1a1a;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.clear-btn:hover {
    background: #ffed4a;
    transform: translateY(-2px);
}

.table-container {
    background: rgba(45, 45, 45, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    border: 1px solid #555;
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.shop-table thead {
    background: linear-gradient(135deg, #ffd700 0%, #87ceeb 100%);
    color: #1a1a1a;
}

.shop-table th,
.shop-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #555;
}

.shop-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.shop-table tbody tr {
    transition: background-color 0.2s ease;
}

.shop-table tbody tr:hover {
    background-color: rgba(135, 206, 235, 0.1);
}

.shop-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Pagination Footer */
.pagination-footer {
    background: linear-gradient(135deg, #ffd700 0%, #87ceeb 100%);
    color: #1a1a1a;
    border-top: 2px solid #555;
    padding: 1rem;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.pagination-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(26, 26, 26, 0.2);
    color: #000;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.5;
}

.pagination-btn:disabled:hover,
.pagination-btn.disabled:hover {
    background: none !important;
    color: #666 !important;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-number {
    color: #1a1a1a;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.page-number:hover:not(.current) {
    background: rgba(26, 26, 26, 0.2);
    color: #000;
}

.page-number.current {
    background: #1a1a1a;
    color: #ffd700;
    font-weight: bold;
}

.dots {
    color: #555;
    font-weight: bold;
    padding: 0.3rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.open {
    background-color: #87ceeb;
    color: #1a1a1a;
}

.status-badge.closed {
    background-color: #ff6b6b;
    color: white;
}

/* Hide rows when searching */
.shop-table tbody tr.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #c0c0c0;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid #555;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .discord-sidebar {
        position: static;
        transform: none;
        width: 100%;
        max-width: 350px;
        margin: 2rem auto;
        display: block;
    }

    .discord-sidebar h3 {
        display: block;
        color: #ffd700;
        margin-bottom: 1rem;
        text-align: center;
        font-size: 1.2rem;
    }

    .discord-sidebar iframe {
        width: 100%;
        height: 400px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-card {
        padding: 1rem;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .shop-status {
        align-self: flex-end;
    }

    /* Table responsive design */
    .search-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-input {
        max-width: 100%;
    }

    .table-container {
        border-radius: 10px;
    }

    .shop-table {
        font-size: 0.8rem;
    }

    .shop-table thead {
        display: none;
    }

    .shop-table,
    .shop-table tbody,
    .shop-table tr,
    .shop-table td {
        display: block;
    }

    .shop-table tr {
        margin-bottom: 1rem;
        background: rgba(45, 45, 45, 0.95);
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        border: 1px solid #555;
    }

    .shop-table td {
        border: none;
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #e0e0e0;
    }

    .shop-table td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: #ffd700;
        flex-shrink: 0;
        margin-right: 1rem;
    }

    .status-badge {
        margin-left: auto;
    }
}
