/* PlayPlan Events Platform - Main Stylesheet */
/* Version: 1.2 */
/* Brand colors: #FFFFFF (white), #000000 (black) */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..400,0..1,-50..200&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.6;
    font-size: 16px;
}

/* Material Icons */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 200, 'opsz' 24;
}

/* Container */
.container {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navigation */
header {
    background-color: #000000;
    border-bottom: 1px solid #333333;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
}

.nav-links a.active {
    color: #FFFFFF;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: opacity 0.2s;
    font-family: 'Karla', sans-serif;
}

.btn:active {
    opacity: 0.8;
}

.btn-primary {
    background-color: #FFFFFF;
    color: #000000;
}

.btn-secondary {
    background-color: #333333;
    color: #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.btn-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.btn-success {
    background-color: #28a745;
    color: #ffffff;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #333333;
    border-radius: 5px;
    font-size: 15px;
    font-family: 'Karla', sans-serif;
    background-color: #FFFFFF;
    color: #000000;
}

input::placeholder,
textarea::placeholder {
    color: #FFB3C1;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #FFFFFF;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Search Bar */
.search-container {
    margin: 20px 0 10px 0;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 50px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 60%;
    transform: translateY(-50%);
    color: #666;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 20px 0;
}

.events-grid a {
    text-decoration: none;
    display: block;
}

.event-card {
    background-color: #000000;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s;
}

.event-card:active {
    transform: scale(0.98);
}

.event-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Square aspect ratio */
}

.event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Gradient overlay for text readability */
.event-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    border-radius: 5px;
    pointer-events: none;
}

.event-content {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
}

.event-date {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 400;
}

.event-host {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 400;
}

.event-price {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 4px;
}

.event-price.free {
    color: #FFFFFF;
}

/* Like Button - positioned bottom right inside image */
.like-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #cccccc22;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    color: #FFFFFF;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s;
}

.like-btn:active {
    background-color: rgba(255, 255, 255, 1);
}

.like-btn.liked {
    color: #dc3545;
}

/* Calendar */
.calendar-container {
    margin: 40px 0;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 5px;
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
}

.calendar-nav {
    display: flex;
    gap: 12px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding: 8px;
    color: #999999;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #333333;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    color: #FFFFFF;
}

.calendar-day.other-month {
    color: #555555;
}

.calendar-day.has-event {
    background-color: #1a1a4d;
    border-color: #6b53ff;
    color: #FFFFFF;
    font-weight: 600;
}

.event-indicator {
    width: 6px;
    height: 6px;
    background-color: #6b53ff;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
}

/* Dashboard */
.dashboard-header {
    margin: 40px 0 30px 0;
}

.dashboard-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.dashboard-header p {
    color: #999999;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 5px;
    padding: 20px;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #999999;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a;
}

thead {
    background-color: #222222;
    border-bottom: 2px solid #333333;
}

th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
}

td {
    padding: 12px;
    border-bottom: 1px solid #333333;
    font-size: 14px;
    color: #FFFFFF;
}

tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-approved {
    background-color: #d4edda;
    color: #155724;
}

.badge-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-completed {
    background-color: #d4edda;
    color: #155724;
}

/* Alerts */
.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #1a4d2e;
    color: #90ee90;
    border: 1px solid #28a745;
}

.alert-error {
    background-color: #4d1a1a;
    color: #ff9999;
    border: 1px solid #dc3545;
}

.alert-info {
    background-color: #1a3a4d;
    color: #99ccff;
    border: 1px solid #17a2b8;
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 5px;
}

.auth-container h1 {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
    color: #FFFFFF;
}

.auth-container p {
    text-align: center;
    color: #999999;
    margin-bottom: 30px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #999999;
}

.auth-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #1a1a1a;
    border-radius: 5px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #333333;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999999;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #6b53ff;
    border-bottom-color: #6b53ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 28px;
    transition: 0.2s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

input:checked + .toggle-slider {
    background-color: #6b53ff;
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    margin-bottom: 4px;
}
.btn-google:hover {
    background: #f7f7f7;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #666;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

/* Responsive Design */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        font-size: 12px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
    
    .like-btn {
        font-size: 16px;
        background-color: #cccccc22;
    }
    
    .like-btn .material-symbols-rounded {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .auth-container {
        margin: 40px auto;
        padding: 24px;
    }
    
    .btn {
        width: 100%;
    }
    
    .like-btn {
        font-size: 16px;
        background-color: #cccccc22;
    }
    
    .like-btn .material-symbols-rounded {
        font-size: 16px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
    display: none !important;
}