/*
Theme Name: CyberNoz Security
Theme URI: https://cybernoz.com
Author: CyberNoz Team
Author URI: https://cybernoz.com
Description: Professional cybersecurity news and threat intelligence theme
Version: 1.0.1
License: GPL v2 or later
Text Domain: cybernoz
*/

/* Base Variables */
:root {
    --primary: #2a9d8f;
    --secondary: #264653;
    --accent: #e76f51;
    --dark: #0d1117;
    --darker: #010409;
    --card-bg: #161b22;
    --text: #c9d1d9;
    --text-muted: #8b949e;
    --border: #30363d;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    width: 100%;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent);
    color: white;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: inherit;
}

input[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

input[type="submit"]:hover {
    background: var(--accent);
}

/* Comments */
.comment-list {
    list-style: none;
}

.comment {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.comment-content {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Widgets */
.widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--text);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.widget li:last-child {
    border-bottom: none;
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.wp-caption {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 4px;
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
}

.gallery-icon {
    border-radius: 4px;
    overflow: hidden;
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 0 auto 1.5rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* Fix mobile overflow */
    body {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Adjust cards for mobile */
    .card {
        padding: 1rem;
    }
    
    /* Adjust forms for mobile */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Pagination mobile */
    .pagination a,
    .pagination span {
        padding: 0.4rem 0.8rem;
        margin: 0 0.1rem;
        font-size: 0.9rem;
    }
    
    /* Gallery mobile */
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .widget {
        padding: 1rem;
    }
}

/* Admin Bar Fix */
.admin-bar header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    header,
    footer,
    .sidebar,
    .navigation,
    .comment-form {
        display: none;
    }
    
    .content {
        width: 100%;
    }
}