/**
 * Main Stylesheet for Shoot Park CMS
 * Clean, modern design for creative studio
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #0066ff;
    --bg-color: #fff;
    --bg-light: #f5f5f5;
    --border-color: #ddd;
    --text-color: #333;
    --text-light: #666;
    --error-color: #d32f2f;
    --success-color: #388e3c;
    --warning-color: #f57c00;
    --spacing: 1rem;
    --border-radius: 4px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-align: center;
}

.btn:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
}

.btn-danger {
    background: var(--error-color);
    color: #fff;
    border-color: var(--error-color);
}

.btn-danger:hover {
    background: #b71c1c;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--text-color);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing);
}

.alert-error {
    background: #ffebee;
    color: var(--error-color);
    border: 1px solid #ffcdd2;
}

.alert-success {
    background: #e8f5e9;
    color: var(--success-color);
    border: 1px solid #c8e6c9;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-draft {
    background: #fff3cd;
    color: #856404;
}

.badge-published {
    background: #d4edda;
    color: #155724;
}

.badge-admin {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-editor {
    background: #d4edda;
    color: #155724;
}

.badge-viewer {
    background: #e2e3e5;
    color: #383d41;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing);
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    background: var(--bg-light);
}

.data-table tr:hover {
    background: var(--bg-light);
}

/* Admin Header */
.admin-header {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.main-nav a:hover {
    opacity: 1;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

/* Admin Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

.admin-main {
    min-width: 0;
}

.admin-sidebar {
    background: var(--bg-light);
    padding: var(--spacing);
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Sections */
.section {
    margin-bottom: 2rem;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-light);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: var(--spacing);
}

.login-box {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Page Assignments */
.assignment-group {
    background: var(--bg-light);
    padding: var(--spacing);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing);
}

.assigned-users {
    margin-top: 1rem;
}

.user-list {
    list-style: none;
    margin: 0.5rem 0;
}

.user-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.assign-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.assign-form select {
    flex: 1;
}

/* Footer */
.admin-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Page View */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem var(--spacing);
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-body {
    line-height: 1.8;
}

.empty-content {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 3rem;
}

/* Text Content */
.text-content {
    margin-bottom: 2rem;
}

.text-content p {
    margin-bottom: 1rem;
}

/* HTML Content */
.html-content {
    margin-bottom: 2rem;
}

/* Structured Content */
.structured-content {
    margin-bottom: 2rem;
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.text-image-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: center;
}

.text-image-section .image-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Utility Classes */
.text-muted {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .text-image-section {
        grid-template-columns: 1fr;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
}

