/* ----------------------------------------------------------------
 * Swisky Urbex - General Styles (public/style.css)
 * ---------------------------------------------------------------- */

/* --- General Reset and Setup --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e; /* Dark background */
    color: #eee; /* Light text */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #ff9800; /* Primary accent color */
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #00bcd4; /* Secondary accent/link color */
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #ff9800;
}

/* --- Forms & Inputs --- */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="number"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
    background-color: #333;
    color: #eee;
    border-radius: 4px;
    font-size: 1em;
}

button[type="submit"], .action-button, .action-edit, .action-delete {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    transition: background-color 0.2s;
}

button[type="submit"] {
    background-color: #ff9800;
    color: #1e1e1e;
}

button[type="submit"]:hover {
    background-color: #e68a00;
}

.action-edit {
    background-color: #00bcd4;
    color: #1e1e1e;
    padding: 5px 10px;
    font-size: 0.9em;
}

.action-delete {
    background-color: #d9534f;
    color: white;
    padding: 5px 10px;
    font-size: 0.9em;
}

/* --- Messages --- */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.success {
    background-color: #4CAF50;
    color: white;
}

.error {
    background-color: #d9534f;
    color: white;
}

/* --- Header/Navigation --- */
.main-header {
    background-color: #2a2a2a;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header a {
    color: #fff;
    margin-left: 15px;
    font-weight: bold;
    padding: 5px 0;
}

.main-header a:hover {
    color: #ff9800;
}

/* --- Data Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.data-table th {
    background-color: #333;
    color: #ff9800;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

.data-table tr:hover {
    background-color: #383838;
}

/* ----------------------------------------------------------------
 * Landing Page Styles (index.php - Guest View)
 * ---------------------------------------------------------------- */

.landing-wrapper {
    min-height: calc(100vh - 80px); /* Full height minus header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    
    /* GRAPHICAL ELEMENTS */
    background: url('../public/images/urbex_bg_placeholder.jpg') no-repeat center center fixed; 
    background-size: cover;
    position: relative;
    z-index: 1; 
}

/* Dark overlay for text readability */
.landing-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Dark overlay */
    z-index: 2;
}

/* Ensure content is above the overlay */
.landing-hero, .counter-grid, .cta-box {
    position: relative;
    z-index: 3; 
}

.landing-hero {
    padding: 60px 40px;
    background: rgba(45, 45, 45, 0.8); 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-top: 5px solid #ff9800;
    max-width: 900px;
    width: 100%;
    margin-bottom: 40px;
}

.landing-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.landing-hero .slogan {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ccc;
}

/* Counter Grid Styling */
.counter-grid {
    display: flex;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 40px;
}

.counter-item {
    flex: 1;
    padding: 30px;
    background: rgba(34, 34, 34, 0.9); /* Slightly transparent dark background */
    border-radius: 8px;
    border-bottom: 4px solid #4CAF50;
    color: #ccc;
}

.counter-item .icon {
    font-size: 3.5em;
    color: #ff9800; 
    margin-bottom: 10px;
    display: block;
}

.counter-item .number {
    font-size: 2em;
    font-weight: bold;
    color: white;
}

.cta-box {
    padding: 30px 40px;
    background: rgba(45, 45, 45, 0.9);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    border-left: 5px solid #00bcd4;
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .counter-grid {
        flex-direction: column;
    }
}