/* Basic styling for Peki Packs website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #000000;
    margin: 0;
    padding: 0;
}

/* Main Layout - Two Column Grid */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    grid-column: 1;
}

.sidebar-banner {
    grid-column: 2;
    position: sticky;
    top: 20px;
    height: fit-content;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Telegram Link Styles */
.telegram-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.telegram-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.telegram-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.hero {
    background-color: #3498db;
    color: white;
    padding: 4rem 0;
    text-align: center;

}

.hero a {
    text-decoration: none;
}


.cta-button {
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0392b;
}

.services {
    padding: 4rem 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

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

.service-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Database status indicator */
.db-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 10px;
    color: white;
    font-weight: bold;
}

.db-connected {
    background-color: #27ae60;
}

.db-error {
    background-color: #e74c3c;
}

/* Responsive Design - Media Queries */

/* Tablets and smaller devices (768px and below) */
@media screen and (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 15px;
    }

    .sidebar-banner {
        display: none;
    }

    .container {
        padding: 0;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .telegram-link {
        top: 15px;
        right: 15px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .services {
        padding: 3rem 0;
    }

    .services h2 {
        font-size: 1.75rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    footer {
        padding: 1.5rem 0;
    }

    footer img {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile devices (480px and below) */
@media screen and (max-width: 480px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .sidebar-banner {
        display: none;
    }

    .container {
        padding: 0;
    }

    header h1 {
        font-size: 1.75rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .telegram-link {
        top: 15px;
        right: 15px;
        padding: 6px;
    }

    .telegram-icon {
        width: 20px;
        height: 20px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 1.25rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 90%;
        max-width: 250px;
    }

    .services h2 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .db-status {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}

/* Large screens (1200px and above) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    header h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Flexible images in footer */
footer img {
    margin: 0 auto 1rem;
}

.sidebar-banner {
    grid-column: 2;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    max-width: 160px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.sidebar-banner:hover img {
    transform: scale(1.02);
}

.sidebar-banner a {
    display: block;
    text-decoration: none;
}