/* ================================================
   reign666.com - Main Stylesheet
   Theme: AeroFlight (ER.OFLIGHT style)
   Colors: Dark nav, green accent, clean white sections
   ================================================ */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; border: none; outline: none; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Icons (CSS-only) */
.icon-phone::before { content: "\260E"; }
.icon-email::before { content: "\2709"; }
.icon-map::before { content: "\25A0"; }

/* Top Bar */
.top-bar {
    background: #0a0a0a;
    color: #aaa;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #222;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left span { margin-right: 20px; }
.top-bar-left i { margin-right: 5px; color: var(--primary-color, #00a651); }
.top-bar-right a { color: #ccc; }
.top-bar-right a:hover { color: var(--primary-color, #00a651); }

/* Header */
.site-header {
    background: #111;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo { display: flex; align-items: center; font-weight: 700; font-size: 1.2rem; }
.logo-img { height: 40px; width: auto; }
.logo-text { font-size: 1.1rem; letter-spacing: -0.5px; }

.main-nav { display: flex; gap: 30px; }
.nav-link {
    color: #ccc;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary-color, #00a651);
    transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary {
    background: var(--primary-color, #00a651);
    color: #fff;
    border: 2px solid var(--primary-color, #00a651);
}
.btn-primary:hover {
    background: transparent;
    color: var(--primary-color, #00a651);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-outline:hover {
    background: #fff;
    color: #111;
}
.btn-secondary {
    background: #333;
    color: #fff;
    border: 2px solid #333;
}
.btn-secondary:hover { background: #444; }

.nav-cta { padding: 8px 20px; font-size: 13px; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #1a1a1a;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-top: 1px solid #333;
}
.mobile-nav.show { display: flex; }
.mobile-link {
    color: #ccc;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}
.mobile-link.active { color: var(--primary-color, #00a651); }
.mobile-link.btn { border: 2px solid var(--primary-color, #00a651); text-align: center; margin-top: 10px; }

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.2"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.25"/></svg>');
    background-size: 200px 200px;
    opacity: 0.5;
    animation: starsMove 60s linear infinite;
}
@keyframes starsMove {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}
.hero-bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    object-fit: cover;
    opacity: 0.3;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-title span { color: var(--primary-color, #00a651); }
.hero-desc {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}
.section-title h2 span { color: var(--primary-color, #00a651); }
.section-title p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}
.section-title.light h2 { color: #fff; }
.section-title.light p { color: #aaa; }

/* Sections */
.section { padding: 80px 0; }
.section-light { background: #f8f9fa; }
.section-dark { background: #111; color: #fff; }
.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title p { color: #aaa; }

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color, #00a651);
}
.product-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--primary-color, #00a651);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.product-card-body { padding: 25px; }
.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.3;
}
.product-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}
.product-card-tag-small {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 4px;
}
.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #00a651);
}
.product-card-btn {
    font-size: 13px;
    padding: 6px 16px;
}

/* Article Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.article-card-img { height: 200px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 25px; }
.article-card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}
.article-card-meta span { display: flex; align-items: center; gap: 5px; }
.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.4;
}
.article-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-readmore {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #00a651);
}
.article-card-readmore:hover { text-decoration: underline; }

/* About Preview */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.about-img img { width: 100%; height: auto; }
.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}
.about-content h2 span { color: var(--primary-color, #00a651); }
.about-content p { font-size: 1rem; color: #555; line-height: 1.8; margin-bottom: 15px; }
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.about-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.about-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #00a651);
}
.about-stat-label { font-size: 0.85rem; color: #666; margin-top: 5px; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,166,81,0.1) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: 2.5rem; color: #fff; margin-bottom: 15px; }
.cta-content p { font-size: 1.1rem; color: #aaa; margin-bottom: 30px; }

/* Footer */
.site-footer { background: #0a0a0a; color: #aaa; }
.footer-main { padding: 60px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-brand .footer-logo { margin-bottom: 15px; }
.footer-logo-img { height: 35px; }
.footer-slogan { font-size: 0.9rem; line-height: 1.6; margin-bottom: 15px; color: #999; }
.footer-address { font-size: 0.85rem; color: #777; }
.footer-links h4, .footer-contact h4, .footer-newsletter h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #888; font-size: 0.9rem; }
.footer-links ul li a:hover { color: var(--primary-color, #00a651); padding-left: 5px; }
.footer-contact p { font-size: 0.9rem; margin-bottom: 10px; color: #888; }
.footer-contact i { margin-right: 8px; color: var(--primary-color, #00a651); }
.footer-newsletter p { font-size: 0.9rem; color: #888; margin-bottom: 15px; }
.footer-bottom {
    border-top: 1px solid #222;
    padding: 20px 0;
    font-size: 0.85rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom-links a { color: #666; margin-left: 20px; }
.footer-bottom-links a:hover { color: var(--primary-color, #00a651); }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}
.page-header h1 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}
.page-header p { color: #aaa; font-size: 1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
}
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: var(--primary-color, #00a651); }
.breadcrumb .sep { color: #555; }

/* Content Pages */
.page-content { padding: 60px 0; }
.page-content h1, .page-content h2, .page-content h3 { color: #111; margin-bottom: 20px; }
.page-content p { color: #555; line-height: 1.8; margin-bottom: 15px; }
.page-content img { border-radius: 8px; margin: 20px 0; }
.page-content ul { list-style: disc; padding-left: 25px; margin-bottom: 15px; }
.page-content ul li { color: #555; margin-bottom: 8px; }

/* Product Detail */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.product-detail-gallery {
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}
.product-detail-gallery img { width: 100%; height: auto; }
.product-detail-info h1 { font-size: 2rem; font-weight: 700; color: #111; margin-bottom: 15px; }
.product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #00a651);
    margin-bottom: 20px;
}
.product-detail-desc { color: #555; line-height: 1.8; margin-bottom: 25px; }
.product-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.product-detail-tags span { font-size: 13px; background: #f0f0f0; color: #666; padding: 5px 14px; border-radius: 20px; }
.product-detail-actions { display: flex; gap: 15px; }

/* Article Detail */
.article-detail-header { margin-bottom: 30px; }
.article-detail-header h1 { font-size: 2rem; font-weight: 700; color: #111; margin-bottom: 15px; }
.article-detail-meta { display: flex; gap: 20px; color: #888; font-size: 0.9rem; }
.article-detail-content { font-size: 1rem; line-height: 1.8; color: #444; }
.article-detail-content h2 { font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; color: #111; }
.article-detail-content p { margin-bottom: 15px; }
.article-detail-content img { border-radius: 8px; max-width: 100%; margin: 20px 0; }

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 700; color: #111; margin-bottom: 20px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-info-icon {
    width: 50px; height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color, #00a651);
    flex-shrink: 0;
}
.contact-info-item h4 { font-size: 1rem; font-weight: 600; color: #111; margin-bottom: 5px; }
.contact-info-item p { font-size: 0.9rem; color: #666; }
.contact-form { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.contact-form h3 { font-size: 1.5rem; font-weight: 700; color: #111; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; color: #333; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background: #fafafa;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-color, #00a651);
    background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .required { color: #e74c3c; }
.form-msg { padding: 15px; border-radius: 6px; margin-bottom: 20px; }
.form-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-msg.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #ddd;
    color: #333;
    transition: all 0.3s ease;
}
.pagination a:hover { background: var(--primary-color, #00a651); color: #fff; border-color: var(--primary-color, #00a651); }
.pagination span.current { background: var(--primary-color, #00a651); color: #fff; border-color: var(--primary-color, #00a651); }
.pagination span.disabled { color: #aaa; cursor: not-allowed; }

/* No results */
.no-results { text-align: center; padding: 60px 20px; color: #888; }
.no-results h3 { font-size: 1.3rem; color: #666; margin-bottom: 10px; }

/* Admin Styles (Basic) */
.admin-body { background: #f0f2f5; }
.admin-header { background: #111; color: #fff; padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.admin-header .logo { color: #fff; font-size: 1.2rem; font-weight: 700; }
.admin-nav { display: flex; gap: 25px; }
.admin-nav a { color: #ccc; font-size: 14px; font-weight: 500; }
.admin-nav a:hover, .admin-nav a.active { color: var(--primary-color, #00a651); }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.admin-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 25px; margin-bottom: 25px; }
.admin-card h3 { font-size: 1.1rem; font-weight: 600; color: #111; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.admin-table th { background: #f8f9fa; font-weight: 600; color: #555; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table tr:hover td { background: #f8f9fa; }
.admin-table img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.admin-table .actions { display: flex; gap: 8px; }
.admin-table .actions a { font-size: 13px; padding: 4px 10px; border-radius: 4px; }
.admin-table .actions a.edit { background: #e3f2fd; color: #1976d2; }
.admin-table .actions a.delete { background: #ffebee; color: #c62828; }
.admin-table .actions a.edit:hover { background: #bbdefb; }
.admin-table .actions a.delete:hover { background: #ffcdd2; }
.admin-form .form-group { margin-bottom: 20px; }
.admin-form .form-group label { font-weight: 500; font-size: 0.9rem; color: #333; display: block; margin-bottom: 6px; }
.admin-form .form-group input, .admin-form .form-group textarea, .admin-form .form-group select {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.9rem; background: #fafafa;
}
.admin-form .form-group input:focus, .admin-form .form-group textarea:focus, .admin-form .form-group select:focus {
    border-color: var(--primary-color, #00a651); background: #fff;
}
.admin-form .form-group textarea { min-height: 200px; resize: vertical; }
.admin-form .form-group .help-text { font-size: 0.8rem; color: #888; margin-top: 5px; }
.admin-form .image-preview { max-width: 200px; margin-top: 10px; border-radius: 4px; border: 1px solid #ddd; }
.admin-btn-group { display: flex; gap: 10px; margin-top: 25px; }
.admin-btn-group .btn { padding: 10px 24px; }
.admin-btn-group .btn-secondary { background: #666; border-color: #666; }

/* Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .main-nav, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .hero { min-height: 70vh; }
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .section { padding: 50px 0; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom .container { flex-direction: column; gap: 10px; text-align: center; }
    .product-grid, .article-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 25px; }
    .admin-table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
    .cta-content h2 { font-size: 1.8rem; }
    .page-header h1 { font-size: 1.8rem; }
    .product-detail-actions { flex-direction: column; }
}
