/**
 * XOSO66 Theme Additional Styles
 */

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d4af37;
    color: #1a1a1a;
    padding: 8px 16px;
    z-index: 100000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress alignments */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.alignnone {
    margin-bottom: 20px;
}

/* WordPress gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.gallery-item {
    padding: 10px;
    text-align: center;
}

.gallery-columns-2 .gallery-item {
    width: 50%;
}

.gallery-columns-3 .gallery-item {
    width: 33.333%;
}

.gallery-columns-4 .gallery-item {
    width: 25%;
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 10px;
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.nav-links a:hover {
    background: #d4af37;
    color: #1a1a1a;
    border-color: #d4af37;
}

.page-numbers.current,
.nav-links span.current {
    background: #d4af37;
    color: #1a1a1a;
    border-color: #d4af37;
}

/* Sticky post */
.sticky {
    position: relative;
}

.sticky::before {
    content: '★';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #d4af37;
    font-size: 1.5rem;
}

/* Bypostauthor */
.bypostauthor {
    background: rgba(212, 175, 55, 0.05);
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #2a2a4a;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 30px;
    padding: 25px;
    background: #1a1a2e;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    color: #d4af37;
    font-weight: 600;
}

.comment-metadata {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.comment-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    color: #d4af37;
    font-weight: 500;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Comment form */
.comment-form {
    margin-top: 40px;
}

.comment-form label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .form-submit {
    margin-top: 20px;
}

.comment-form .submit {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    color: #1a1a1a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Widgets */
.widget {
    margin-bottom: 40px;
    padding: 25px;
    background: #1a1a2e;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
}

.widget-title {
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #d4af37;
}

/* Calendar widget */
.widget_calendar table {
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
}

.widget_calendar th,
.widget_calendar td {
    padding: 8px;
    text-align: center;
}

.widget_calendar th {
    color: #d4af37;
}

.widget_calendar caption {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Search widget */
.widget_search .search-form {
    display: flex;
    gap: 10px;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: #fff;
}

.widget_search button {
    padding: 12px 20px;
    background: #d4af37;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Tag cloud */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a4a;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: #d4af37;
    color: #1a1a1a;
    border-color: #d4af37;
}

/* Blockquote */
blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid #d4af37;
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 15px;
    color: #d4af37;
    font-style: normal;
    font-weight: 600;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #2a2a4a;
}

th {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Code */
code,
kbd,
pre,
samp {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

code {
    padding: 2px 6px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-radius: 4px;
}

pre {
    padding: 20px;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 12px;
    overflow-x: auto;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Definition list */
dt {
    color: #d4af37;
    font-weight: 600;
    margin-top: 20px;
}

dd {
    margin-left: 0;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
}

/* Address */
address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Abbreviation */
abbr[title] {
    border-bottom: 1px dotted #d4af37;
    cursor: help;
}

/* Mark */
mark {
    background: #d4af37;
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Ins and Del */
ins {
    background: rgba(0, 255, 0, 0.1);
    color: #4ade80;
    text-decoration: none;
}

del {
    background: rgba(255, 0, 0, 0.1);
    color: #f87171;
}

/* Small */
small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Big */
big {
    font-size: 1.2rem;
}

/* Sub and Sup */
sub,
sup {
    font-size: 0.75rem;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* HR */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2a2a4a, transparent);
    margin: 40px 0;
}

/* Selection */
::selection {
    background: #d4af37;
    color: #1a1a1a;
}

::-moz-selection {
    background: #d4af37;
    color: #1a1a1a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2a2a4a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .hero-cta,
    .menu-toggle,
    .nav-cta {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .page-content {
        padding: 0;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .content-box {
        background: none;
        border: none;
        padding: 0;
    }
}
