body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background: #f4f4f4; color: #333; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header { background: #2c3e50; color: #fff; padding: 1rem 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
header .container { display: flex; justify-content: space-between; align-items: center; }
header h1 a { color: #fff; text-decoration: none; font-weight: bold; }
header nav a { color: #ecf0f1; text-decoration: none; margin-left: 20px; font-size: 0.95rem; }
header nav a:hover { color: #e67e22; }
main { padding: 2rem 0; min-height: 80vh; }
footer { background: #2c3e50; color: #bdc3c7; text-align: center; padding: 1.5rem 0; margin-top: auto; }

/* Page Layout (Sidebar) */
.page-wrapper { display: flex; gap: 30px; align-items: flex-start; }
.main-content { flex: 3; }
.sidebar { flex: 1; min-width: 250px; }

@media (max-width: 768px) {
    .page-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
}

/* Sidebar Widgets */
.sidebar-widget { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.sidebar-widget h3 { margin-top: 0; font-size: 1.1rem; border-bottom: 2px solid #f4f4f4; padding-bottom: 10px; margin-bottom: 15px; color: #2c3e50; }

.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 10px; border-bottom: 1px solid #f9f9f9; padding-bottom: 10px; }
.sidebar-list li:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-list a { text-decoration: none; color: #555; font-size: 0.95rem; }
.sidebar-list a:hover { color: #e67e22; }

/* Search Form */
.search-form { display: flex; gap: 5px; }
.search-form input { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.search-form button { padding: 8px 15px; background: #2c3e50; color: white; border: none; border-radius: 4px; cursor: pointer; }
.search-form button:hover { background: #34495e; }

/* Cards & Content */
.card { background: #fff; padding: 25px; margin-bottom: 25px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.card h1, .card h2 { margin-top: 0; color: #2c3e50; }
.card a { color: #2c3e50; text-decoration: none; }
.card a:hover { color: #e67e22; }
.meta { color: #7f8c8d; font-size: 0.9rem; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.btn { display: inline-block; background: #e67e22; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin-top: 10px; transition: background 0.3s; }
.btn:hover { background: #d35400; }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; margin: 25px 0; background: #f9f9f9; border-radius: 5px; overflow: hidden; }
.specs-table th, .specs-table td { text-align: left; padding: 12px 15px; border-bottom: 1px solid #ddd; }
.specs-table th { background: #ecf0f1; width: 30%; font-weight: 600; }

/* Gallery */
.gallery { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 25px; }
.gallery a { display: block; width: 200px; height: 150px; overflow: hidden; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.05); }

/* Responsive Video */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Auth Pages (Login/Register) */
.auth-container { max-width: 400px; margin: 50px auto; padding: 30px; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.auth-container h2 { text-align: center; margin-top: 0; color: #2c3e50; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.btn-block { display: block; width: 100%; text-align: center; background: #2c3e50; color: #fff; border: none; padding: 12px; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.btn-block:hover { background: #34495e; }
.alert { padding: 10px; margin-bottom: 15px; border-radius: 4px; font-size: 0.9rem; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.auth-links { text-align: center; margin-top: 15px; font-size: 0.9rem; }
.auth-links a { color: #e67e22; text-decoration: none; }

/* Public Album Gallery */
.album-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; margin-top: 20px; }
.album-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.2s; }
.album-item:hover { transform: translateY(-5px); }
.album-item a { text-decoration: none; color: inherit; }
.album-cover { height: 180px; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-title { padding: 15px; text-align: center; }
.album-title h3 { margin: 0; font-size: 1.1rem; color: #2c3e50; }

/* Profile */
.avatar-preview { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #ddd; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* Comments */
.comments-section { margin-top: 30px; }
.comment-form textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; resize: vertical; font-family: inherit; }
.login-to-comment { background: #f9f9f9; padding: 15px; border-radius: 4px; text-align: center; }

.comments-list { margin-top: 20px; }
.comment { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.comment:last-child { border-bottom: none; }

.comment-avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.default-avatar { width: 50px; height: 50px; border-radius: 50%; background: #ddd; color: #555; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }

.comment-body { flex: 1; }
.comment-meta { margin-bottom: 5px; font-size: 0.9rem; }
.comment-meta strong { color: #2c3e50; margin-right: 10px; }
.comment-meta span { color: #95a5a6; font-size: 0.8rem; }
.comment-text { line-height: 1.5; color: #333; }

/* Star Rating */
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 1.5rem; color: #ddd; cursor: pointer; line-height: 1; }
.star-rating-input input:checked ~ label { color: #f1c40f; }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: #f1c40f; }
.comment-rating { color: #f1c40f; margin-left: 10px; font-size: 1rem; }

/* Likes */
.like-container { margin: 20px 0; }
.btn-like { background: none; border: 2px solid #e74c3c; color: #e74c3c; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 1rem; transition: all 0.3s; }
.btn-like:hover { background: #fceceb; }
.btn-like.liked { background: #e74c3c; color: white; }
.like-count { margin-left: 10px; font-weight: bold; color: #555; }
