/**
 * Xoso66 Theme - Custom Styles
 * 
 * @package XOSO66_Toys
 */

/* ===================================
   Header Auth Buttons
   =================================== */
.header-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    cursor: pointer;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.auth-btn:active {
    transform: translateY(-1px);
}

.auth-icon {
    font-size: 16px;
    line-height: 1;
}

.auth-text {
    white-space: nowrap;
}

/* Login Button - Secondary Style */
.auth-btn.login-btn {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    box-shadow: none;
}

.auth-btn.login-btn:hover {
    background: #667eea;
    color: #fff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Register Button - Primary Style */
.auth-btn.register-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.auth-btn.register-btn:hover {
    background: linear-gradient(135deg, #5a6fd1 0%, #6a4190 100%);
}

/* Responsive Header Auth */
@media (max-width: 768px) {
    .header-auth {
        margin-top: 15px;
        justify-content: center;
        gap: 10px;
    }
    
    .auth-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .auth-text {
        display: none;
    }
    
    .auth-icon {
        font-size: 18px;
    }
    
    .auth-btn.login-btn {
        border: 2px solid #667eea;
    }
}

/* ===================================
   Additional Styles
   =================================== */

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #764ba2;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #667eea;
}

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

.comment-list li {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.comment-respond {
    margin-top: 30px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

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

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Search Form */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 20px 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-form input[type="submit"] {
    padding: 12px 20px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background: #764ba2;
}

/* Widget Styles */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 20px;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

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

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #667eea;
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute !important;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 0;
    top: 0;
    z-index: 999999;
    background: #667eea;
    color: #fff;
    padding: 10px 20px;
}

/* Entry Content */
.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #667eea;
    margin: 30px 0 20px;
}

.entry-content h2 {
    font-size: 28px;
}

.entry-content h3 {
    font-size: 24px;
}

.entry-content h4 {
    font-size: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    font-style: italic;
    color: #666;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 20px;
}

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

.aligncenter {
    display: block;
    margin: 20px auto;
    text-align: center;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.gallery-caption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* Table */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.entry-content th,
.entry-content td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.entry-content th {
    background: #667eea;
    color: #fff;
    font-weight: 600;
}

.entry-content tr:nth-child(even) {
    background: #f8f9fa;
}

/* Video Embed */
.entry-content iframe,
.entry-content video {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/* Code */
.entry-content code,
.entry-content pre {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.entry-content pre {
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Buttons Additional */
.btn {
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(-1px);
}

/* Cards */
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .post-navigation .nav-next {
        text-align: left;
        margin-top: 15px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .entry-content table {
        font-size: 14px;
    }
    
    .entry-content th,
    .entry-content td {
        padding: 8px;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}
