/**
 * Custom Styles
 * Additional theme styles
 *
 * @package Blogio
 */

/* Social Links Styling */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-gray);
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-social {
    margin-top: var(--spacing-md);
}

.footer-social .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-social .social-links a:hover {
    background-color: var(--primary-color);
}

/* Post Navigation */
.post-navigation {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-gray);
    border-radius: 12px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: var(--spacing-md);
    background-color: var(--bg-color);
    border-radius: 8px;
    transition: var(--transition);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

/* Page Header - Eski stil (kullanılmıyor) */
.page-header {
    display: none;
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: var(--spacing-xl);
}

.error-404 .page-header {
    padding: var(--spacing-xl) 0;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404-widgets {
    margin-top: var(--spacing-xl);
    text-align: left;
}

.error-404-widgets h2 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.error-404-widgets ul {
    list-style: none;
    padding: 0;
}

.error-404-widgets ul li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.error-404-widgets ul li:last-child {
    border-bottom: none;
}

/* Search Form */
.search-form {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.search-form label {
    flex: 1;
}

.search-form input[type="search"] {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form input[type="submit"] {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-form input[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* Page Links */
.page-links {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.page-links span,
.page-links a {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    margin-right: var(--spacing-xs);
    background-color: var(--bg-gray);
    border-radius: 6px;
    transition: var(--transition);
}

.page-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* No Sidebar Layout */
.no-sidebar .content-area {
    grid-template-columns: 1fr;
}

.no-sidebar .posts-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Custom Logo */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.posts-wrapper > article {
    animation: fadeIn 0.5s ease-out;
}

/* Dark Mode Adjustments */
.color-scheme-dark {
    background-color: #1a1a1a;
}

.color-scheme-dark .site-header {
    background-color: #2d2d2d;
    border-bottom-color: #404040;
}

.color-scheme-dark article {
    background-color: #2d2d2d;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.color-scheme-dark .widget {
    background-color: #2d2d2d;
}

/* Responsive Images */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--spacing-xs);
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.alignright {
    float: right;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.alignwide {
    margin-left: calc(25% - 25vw);
    margin-right: calc(25% - 25vw);
    max-width: 120%;
    width: 120%;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--text-light);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
}

table th,
table td {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    text-align: left;
}

table th {
    background-color: var(--bg-gray);
    font-weight: 600;
}

/* Code */
code {
    background-color: var(--bg-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background-color: var(--bg-gray);
    padding: var(--spacing-md);
    border-radius: 8px;
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
}

pre code {
    background: none;
    padding: 0;
}

/* ==========================================================================
   Placeholder Thumbnail Styles
   ========================================================================== */

.placeholder-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.placeholder-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.placeholder-icon {
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: iconFloat 3s ease-in-out infinite;
}

.placeholder-icon svg {
    width: 48px;
    height: 48px;
    stroke: white;
}

.placeholder-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 280px;
    letter-spacing: -0.01em;
}

.placeholder-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.placeholder-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.1;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px
        );
    animation: patternMove 20s linear infinite;
}

/* Hover Effect */
.post-card:hover .placeholder-thumbnail {
    transform: scale(1);
}

.post-card:hover .placeholder-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.post-card:hover .placeholder-pattern {
    opacity: 0.15;
}

/* Animations */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Dark Mode Support */
body.dark-mode .placeholder-thumbnail {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .placeholder-category {
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .placeholder-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .placeholder-title {
        font-size: 0.875rem;
    }
    
    .placeholder-category {
        font-size: 0.625rem;
    }
}

/* ==========================================================================
   Widget Placeholder Thumbnail Styles
   ========================================================================== */

.widget-placeholder-thumbnail {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.widget-placeholder-icon {
    position: relative;
    z-index: 2;
    color: white;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.widget-placeholder-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Hover effect */
.tab-item:hover .widget-placeholder-thumbnail {
    transform: scale(1.05);
}

.tab-item:hover .widget-placeholder-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* Subtle pattern overlay */
.widget-placeholder-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255, 255, 255, 0.05) 5px,
        rgba(255, 255, 255, 0.05) 10px
    );
    z-index: 1;
    opacity: 0.3;
}

/* Dark mode */
body.dark-mode .widget-placeholder-thumbnail {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Ensure widget thumbnail consistency */
.tab-thumb {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.tab-thumb .tab-img,
.tab-thumb .widget-placeholder-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Single Post Tags
   ========================================================================== */

.single .entry-footer .tags-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Archive Header Compact
   ========================================================================== */

.archive-header-compact {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.archive-title-compact {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.archive-title-compact span {
    color: var(--primary-color);
}

.archive-description-compact {
    margin-top: 0.5rem;
    font-size: 0.938rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Dark mode */
body.dark-mode .archive-header-compact {
    border-bottom-color: var(--primary-color);
}

body.dark-mode .archive-title-compact {
    color: #f3f4f6;
}

body.dark-mode .archive-description-compact {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .archive-title-compact {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Floating Social Share Sidebar
   ========================================================================== */

.floating-social-share {
    position: sticky;
    top: 120px;
    left: -80px;
    float: left;
    margin-left: -80px;
    z-index: 100;
}

.floating-share-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-color);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.floating-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Platform specific colors */
.floating-facebook:hover {
    background: #1877f2;
    color: white;
}

.floating-twitter:hover {
    background: #1da1f2;
    color: white;
}

.floating-linkedin:hover {
    background: #0a66c2;
    color: white;
}

.floating-whatsapp:hover {
    background: #25d366;
    color: white;
}

.floating-link:hover {
    background: var(--primary-color);
    color: white;
}

.floating-link.copied {
    background: #10b981;
    color: white;
}

/* Share count badge */
.share-count {
    font-size: 0.625rem;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.7;
}

/* Mobile - hide floating, show at bottom */
@media (max-width: 1024px) {
    .floating-social-share {
        display: none;
    }
}

/* WhatsApp only on mobile */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
}

/* Dark mode */
body.dark-mode .floating-share-inner {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .floating-share-btn {
    background: #374151;
    color: #e5e7eb;
}

/* ==========================================================================
   Compact Author Info & Footer
   ========================================================================== */

.entry-footer-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.5rem;
}

.footer-tags {
    flex: 1;
    min-width: 200px;
}

.compact-author-info {
    flex-shrink: 0;
}

.compact-author-info .author-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.compact-author-info .author-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.compact-author-info .author-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.compact-author-info .author-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.compact-author-info .author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.compact-author-info .author-link:hover .author-name {
    color: white;
}

.compact-author-info .author-posts-count {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1;
    transition: color 0.3s ease;
}

.compact-author-info .author-link:hover .author-posts-count {
    color: rgba(255, 255, 255, 0.9);
}

/* Dark mode */
body.dark-mode .compact-author-info .author-link {
    background: #374151;
}

body.dark-mode .compact-author-info .author-link:hover {
    background: var(--primary-color);
}

body.dark-mode .compact-author-info .author-name {
    color: #e5e7eb;
}

body.dark-mode .compact-author-info .author-posts-count {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .entry-footer-compact {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .compact-author-info {
        width: 100%;
    }
    
    .compact-author-info .author-link {
        width: 100%;
        justify-content: center;
    }
}

