/* style.css - modern landing page styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary: hsl(210, 80%, 55%);
    --bg: linear-gradient(135deg, hsl(210, 30%, 10%), hsl(210, 30%, 20%));
    --card-bg: rgba(255, 255, 255, 0.08);
    --text: #f0f0f0;
    --accent: hsl(45, 90%, 55%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
}

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

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

p.subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

/* Image gallery container */
.image-gallery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Images fill container */
.gallery-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .image-gallery {
        max-width: 400px;
    }
}

button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 1rem;
}

button:hover {
    background: hsl(210, 80%, 45%);
}

button:active {
    transform: scale(0.97);
}

/* Admin panel styling */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.admin-card {
    background: var(--card-bg);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.admin-table th,
.admin-table td {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.logout-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.logout-form button:hover {
    background: hsl(210, 80%, 45%);
}

/* Fixed Add Line button */
.add-line-form {
    position: fixed;
    bottom: 5px;
    /* now only 5px from bottom */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* Fixed Add Line button - green theme with stronger sparkle */
.fixed-button {
    background: hsl(120, 70%, 45%);
    /* vibrant green */
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    animation: sparkle 2s infinite, bounce 0.8s ease-in-out infinite;
    box-shadow: 0 0 8px hsl(120, 70%, 45%);
}

.fixed-button:hover {
    background: hsl(120, 70%, 55%);
    /* lighter green on hover */
    animation-duration: 1.5s;
    /* faster sparkle when hovered */
}

/* Sparkle animation (intensified) */
@keyframes sparkle {
    0% {
        box-shadow: 0 0 8px hsl(120, 70%, 45%);
    }

    50% {
        box-shadow: 0 0 20px hsl(120, 70%, 45%);
    }

    100% {
        box-shadow: 0 0 8px hsl(120, 70%, 45%);
    }
}

/* Subtle bounce animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

footer {
    margin-top: auto;
    font-size: 0.9rem;
    opacity: 0.6;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item-content {
    padding: 1rem;
}

.gallery-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.gallery-item p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

.gallery-item button {
    width: calc(100% - 2rem);
    /* Adjust for padding */
    margin: 1rem 1rem 0 1rem;
    /* Top, Right, Bottom, Left */
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-item button:hover {
    background: hsl(210, 80%, 45%);
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    p.subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}