/* ========================================
   Additional Theme Styles
   ======================================== */

/* SVG Icons Support - Replaces Font Awesome Icon Fonts */
svg.icon-inline,
svg.icon-social,
svg.phone-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

svg.icon-inline {
    width: 0.875em;
    height: 0.875em;
}

svg.icon-social {
    width: 1.25em;
    height: 1.25em;
}

svg.phone-icon {
    width: 1.5em;
    height: 1.5em;
}

/* Social Media Colors for SVG Icons */
.share-btn.facebook svg,
a[href*="facebook"] svg {
    color: #3b5998;
}

.share-btn.twitter svg,
a[href*="twitter"] svg {
    color: #1da1f2;
}

.share-btn.instagram svg,
a[href*="instagram"] svg {
    color: #e4405f;
}

.share-btn.youtube svg,
a[href*="youtube"] svg {
    color: #ff0000;
}

.share-btn.linkedin svg,
a[href*="linkedin"] svg {
    color: #0077b5;
}

.share-btn.whatsapp svg,
a[href*="whatsapp"] svg {
    color: #25d366;
}

.share-btn.telegram svg,
a[href*="t.me"] svg,
a[href*="telegram"] svg {
    color: #0088cc;
}

a[href*="snapchat"] svg {
    color: #fffc00;
}

/* Additional Layout Styles */
.right-sidebar #column {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .right-sidebar #column {
        flex-direction: row;
        gap: 2rem;
    }
    
    .right-sidebar #bloglist {
        flex: 1;
    }
    
    .right-sidebar #sidewrap2 {
        width: 300px;
        flex-shrink: 0;
    }
}

/* Slider Navigation Arrows */
.jssora051 {
    display: block;
    position: absolute;
    width: 55px;
    height: 55px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    overflow: hidden;
    z-index: 10;
}

.jssora051:hover {
    background: rgba(0,0,0,0.7);
}

.jssora051 .a {
    fill: #fff;
}

.jssora051.jssora051dn {
    opacity: 0.3;
}

.jssora051.jssora051ds {
    opacity: 0.1;
    pointer-events: none;
}

/* Slider Bullets */
.jssorb051 {
    position: absolute;
    cursor: pointer;
}

.jssorb051 .i {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    overflow: hidden;
    cursor: pointer;
}

.jssorb051 .i.dn {
    background: rgba(255,255,255,0.3);
}

.jssorb051 .i:hover {
    background: rgba(255,255,255,0.7);
}

.jssorb051 .iav {
    background: #fff;
}

/* Mosaic Filter Tabs */
.sprocket-mosaic-filter ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0;
}

.sprocket-mosaic-filter ul li a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #f0f0f0;
    color: #333;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sprocket-mosaic-filter ul li a:hover,
.sprocket-mosaic-filter ul li.active a {
    background: var(--secondary-color, #3498db);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Module Table */
.moduletable {
    margin: 2rem 0;
}

.moduletable h3 {
    color: var(--primary-color, #2c3e50);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Post Meta Information */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin: 0.5rem 0;
}

.post-meta .fa {
    margin-left: 0.25rem;
}

/* Category Badge */
.cat-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color, #3498db);
    color: #fff;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Responsive Images */
.attachment-medium,
.wp-post-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Entry Content */
.entry-content {
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.entry-content a {
    color: var(--secondary-color, #3498db);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--accent-color, #e74c3c);
}

/* Blockquote */
blockquote {
    border-right: 4px solid var(--secondary-color, #3498db);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

/* Code Blocks */
pre, code {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    background: #f4f4f4;
    border-radius: 4px;
}

code {
    padding: 0.2rem 0.4rem;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    padding: 0;
    background: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: right;
    border: 1px solid #ddd;
}

th {
    background: var(--primary-color, #2c3e50);
    color: #fff;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--secondary-color, #3498db);
    color: #fff;
}

.pagination .current {
    background: var(--secondary-color, #3498db);
    color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--secondary-color, #3498db);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: var(--secondary-color, #3498db);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-right: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.9);
    color: #fff;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Print Optimization */
@media print {
    .no-print,
    .menu-btn,
    .pushy,
    .site-overlay,
    #footer,
    .tagcloud,
    .wpcf7 {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    .post {
        page-break-inside: avoid;
    }
}
