/*
Theme Name: AR-Studios-Theme
Theme URI: https://yourwebsite.com
Author: AR Studios
Author URI: https://yourwebsite.com
Description: A clean, professional WordPress theme with ePaper plugin compatibility
Version: 2.0
License: GPL v2 or later
Text Domain: ar-studios-theme
*/

/* ============================================
   1. RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* ============================================
   2. SITE HEADER
   ============================================ */
.site-header {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
}

/* Header Top - Logo */
.header-top {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

.logo-area {
    text-align: center;
    padding: 0 20px;
}

.site-logo {
    display: inline-block;
}

.site-logo img {
    max-height: 80px;
    width: auto;
}

.site-title h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
}

.site-title h1 a {
    color: #1a1a2e;
    text-decoration: none;
}

.site-description {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

/* Navigation */
.header-nav {
    background: #1a1a2e;
    border-top: 3px solid #e94560;
    border-bottom: 1px solid #2a2a4e;
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 55px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current-page-item a {
    background: #e94560;
}

/* Dropdown */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    min-width: 200px;
    display: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #e94560;
}

.main-navigation ul li:hover > ul {
    display: block;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul li a {
    padding: 12px 20px;
    font-size: 14px;
    text-transform: none;
    border-bottom: 1px solid #2a2a4e;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.epaper-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e94560;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.epaper-nav-btn:hover {
    background: #c81e3a;
    color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 3px;
}

/* ============================================
   3. BREAKING NEWS TICKER
   ============================================ */
.breaking-news-ticker {
    background: #e94560;
    border-top: 2px solid #c81e3a;
    border-bottom: 2px solid #c81e3a;
    overflow: hidden;
    height: 45px;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ticker-label {
    flex: 0 0 auto;
    background: #1a1a2e;
    color: #fff;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ticker-label .ticker-icon {
    margin-right: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scrollTicker 30s linear infinite;
    white-space: nowrap;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.ticker-item a {
    color: #fff;
    text-decoration: none;
}

.ticker-item a:hover {
    color: #1a1a2e;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   4. HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-title span {
    color: #e94560;
}

.hero-text {
    font-size: 18px;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
}

/* ============================================
   5. CONTENT AREA
   ============================================ */
.site-content {
    background: #f5f5f5;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Blog Posts Grid */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.post-item:hover {
    transform: translateY(-5px);
}

.post-item .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-item .post-content {
    padding: 20px;
}

.post-item h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.post-item h2 a {
    color: #1a1a2e;
    text-decoration: none;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-excerpt {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    color: #c81e3a;
}

/* ============================================
   6. SINGLE POST
   ============================================ */
.single-post {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-post h1 {
    color: #1a1a2e;
    margin-bottom: 15px;
}

.single-post .post-thumbnail {
    margin: 20px 0;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-navigation a {
    color: #e94560;
    text-decoration: none;
}

/* ============================================
   7. PAGE CONTENT
   ============================================ */
.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-content h1 {
    color: #1a1a2e;
    margin-bottom: 20px;
}

.page-thumbnail {
    margin: 20px 0;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* ============================================
   8. EPAPER PAGE - NO THEME INTERFERENCE
   ============================================ */
body.epaper-page .site-header {
    position: relative;
}

body.epaper-page .content-area {
    padding: 0;
    max-width: 100%;
}

body.epaper-page .page-content {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* ============================================
   9. FOOTER
   ============================================ */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   10. WIDGETS
   ============================================ */
.widget {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.widget h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #e94560;
}

/* ============================================
   11. PAGINATION
   ============================================ */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}

.pagination .page-numbers.current {
    background: #e94560;
    color: #fff;
}

.pagination .page-numbers:hover {
    background: #ddd;
}

/* ============================================
   12. BUTTONS
   ============================================ */
.button {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.button:hover {
    background: #c81e3a;
    color: #fff;
}

/* ============================================
   13. 404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 72px;
    color: #e94560;
}

.error-404 p {
    font-size: 18px;
    color: #666;
    margin: 20px 0;
}

/* ============================================
   14. COMMENTS
   ============================================ */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 20px;
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 5px;
}

.comment-author {
    font-weight: 600;
    color: #1a1a2e;
}

.comment-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ============================================
   15. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .site-logo img {
        max-height: 60px;
    }
    
    .site-title h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
    }
    
    .site-logo img {
        max-height: 50px;
    }
    
    .site-title h1 {
        font-size: 22px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        flex-wrap: wrap;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1a1a2e;
    }
    
    .main-navigation ul.toggled {
        display: flex;
    }
    
    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid #2a2a4e;
    }
    
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border-top: none;
        background: #2a2a4e;
    }
    
    .main-navigation ul ul li a {
        padding-left: 35px;
    }
    
    .nav-actions {
        margin-left: auto;
    }
    
    .epaper-nav-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .breaking-news-ticker {
        height: 40px;
    }
    
    .ticker-label {
        font-size: 11px;
        padding: 0 15px;
    }
    
    .ticker-item {
        font-size: 12px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .single-post {
        padding: 20px;
    }
    
    .page-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        max-height: 40px;
    }
    
    .site-title h1 {
        font-size: 18px;
    }
    
    .ticker-label {
        font-size: 10px;
        padding: 0 10px;
    }
    
    .ticker-item {
        font-size: 11px;
        padding: 0 15px;
    }
    
    .epaper-nav-btn {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .single-post {
        padding: 15px;
    }
    
    .page-content {
        padding: 15px;
    }
}

/* ============================================
   16. PRINT
   ============================================ */
@media print {
    .breaking-news-ticker,
    .header-nav {
        display: none;
    }
    
    .site-header {
        box-shadow: none;
    }
}