/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 10px;
}

/* Headings */
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #444;
}

/* Search & Forms */
.search-form, 
.video-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.search-form input,
.video-form input,
.video-form select,
.search-form button,
.video-form button,
.add-btn {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    flex: 1 1 200px;
    max-width: 100%;
}

/* Buttons */
button, .add-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
}

button:hover, .add-btn:hover {
    background-color: #218838;
}

/* Card Grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Individual Card */
.card {
    background: linear-gradient(135deg, #f6d365, #fda085);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s;
    
     display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Center cards */
    margin-top: 20px;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.actions a {
    text-decoration: none;
    font-weight: bold;
}

.actions a.edit {
    color: #007bff;
}

.actions a.delete {
    color: red;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination a {
    padding: 8px 12px;
    border-radius: 5px;
    background: #ddd;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.pagination a.active {
    background: #28a745;
    color: white;
}

.pagination a:hover {
    background: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-form, .video-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form input, 
    .video-form input,
    .video-form select,
    .video-form button {
        width: 100%;
    }

    .cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 10px;
    }

    .card img {
        max-height: 120px;
    }
}
/* Header Styling */
header {
    background: linear-gradient(135deg, #ff7e5f, #feb47b); /* warm orange ? peach */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Add subtle highlights for depth */
header::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.12), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1), transparent 50%);
    pointer-events: none;
}

.header-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.userbox {
    color: #fff;
    font-size: 0.95rem;
}

.userbox a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 600;
}
.expiry {
    display: inline-block;
    margin-left: 10px;
    background: rgba(0,0,0,0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}
