/* MeteMultiBlog - Main Stylesheet */
/* CSS Variables are set inline in HTML for dynamic colors */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header {
    background: var(--header-color, #ffffff);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section img {
    height: 2.5rem;
    width: auto;
}

.nav {
    display: none;
}

.nav a {
    color: #6b7280;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color, #3B82F6);
}

.current-url-banner {
    background: linear-gradient(135deg, var(--primary-color, #3B82F6), var(--accent-color, #8B5CF6));
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Banner animations */
@keyframes banner-pulse {
    0% {
        box-shadow:
            0 0 50px rgba(255, 255, 255, 0.4),
            0 0 100px rgba(255, 255, 255, 0.2),
            0 0 150px rgba(255, 255, 255, 0.1),
            inset 0 2px 0 rgba(255, 255, 255, 0.5);
        filter: brightness(1) saturate(1) contrast(1);
        transform: scale(1);
    }
    100% {
        box-shadow:
            0 0 80px rgba(255, 255, 255, 0.6),
            0 0 150px rgba(255, 255, 255, 0.4),
            0 0 200px rgba(255, 255, 255, 0.2),
            inset 0 3px 0 rgba(255, 255, 255, 0.7);
        filter: brightness(1.4) saturate(1.5) contrast(1.2);
        transform: scale(1.02);
    }
}

@keyframes shimmer-banner {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(100%) skewX(-15deg);
    }
}

@keyframes border-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.current-url-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

.current-url-button {
    background: var(--button-color, #3B82F6);
    color: var(--button-text-color, #ffffff);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: button-glow 2s ease-in-out infinite;
}

.current-url-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.current-url-button:hover::before {
    left: 100%;
}

.current-url-button:hover {
    background: var(--secondary-color, #1E40AF);
    color: var(--button-text-color, #ffffff);
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    box-shadow:
        0 15px 40px rgba(255, 255, 255, 0.6),
        0 0 80px rgba(255, 255, 255, 0.5),
        0 0 120px rgba(255, 255, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    animation: none;
    border-color: rgba(255, 255, 255, 0.8);
}

.current-url-button:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s;
}

@keyframes pulse-glow {
    0% {
        box-shadow:
            0 0 20px rgba(255, 255, 255, 0.3),
            0 0 40px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        border-color: rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow:
            0 0 30px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        border-color: rgba(255, 255, 255, 0.6);
    }
}

.current-url-button i {
    transition: transform 0.3s ease;
    animation: bounce-icon 1.5s ease-in-out infinite;
}

.current-url-button:hover i {
    transform: scale(1.2) rotate(15deg);
    animation: none;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.current-url-simple {
    text-align: center;
    margin: 2rem 0;
}

.current-url-simple-button {
    background: var(--button-color, #3B82F6);
    color: var(--button-text-color, #ffffff);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: button-glow-simple 2s ease-in-out infinite;
}

.current-url-simple-button:hover {
    background: var(--secondary-color, #1E40AF);
    color: var(--button-text-color, #ffffff);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: none;
}

.current-url-simple-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.current-url-simple-button:hover::before {
    left: 100%;
}

@keyframes button-glow {
    0% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.2),
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 60px rgba(255, 255, 255, 0.4),
            0 0 90px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.2),
            0 0 60px rgba(255, 255, 255, 0.9),
            0 0 120px rgba(255, 255, 255, 0.7),
            0 0 180px rgba(255, 255, 255, 0.5),
            0 0 240px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.2),
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 60px rgba(255, 255, 255, 0.4),
            0 0 90px rgba(255, 255, 255, 0.3);
    }
}

/* Pagination */
.custom-pagination {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.pagination-info {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 3rem;
    height: 3rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover {
    color: var(--primary-color, #3B82F6);
    background: #f8fafc;
    border-color: var(--primary-color, #3B82F6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.pagination-btn.active {
    color: white;
    background: var(--primary-color, #3B82F6);
    border-color: var(--primary-color, #3B82F6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.pagination-btn.disabled {
    color: #9ca3af;
    background: #f3f4f6;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Layout */
.main-content {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.main-column {
    grid-column: 1;
}

.sidebar-column {
    grid-column: 1;
}

/* Hero Section */
.hero-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color, #3B82F6);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

/* Post Cards */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

.post-meta span {
    margin: 0 0.5rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--primary-color, #3B82F6);
}

.post-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.625;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.post-tags i {
    color: #9ca3af;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.tag:hover {
    opacity: 0.8;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color, #3B82F6);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color, #1E40AF);
}

.read-more i {
    margin-left: 0.5rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 0.5rem;
    color: var(--primary-color, #3B82F6);
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 0.875rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color, #3B82F6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-button {
    padding: 0.5rem 1rem;
    background: var(--primary-color, #3B82F6);
    color: white;
    border: none;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background: var(--secondary-color, #1E40AF);
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.recent-post:hover {
    background: #f9fafb;
}

.recent-post img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.25rem;
}

.recent-post-placeholder {
    width: 3rem;
    height: 3rem;
    background: #f3f4f6;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.recent-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-title a:hover {
    color: var(--primary-color, #3B82F6);
}

.recent-post-date {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Categories Widget */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    text-decoration: none;
}

.category-item:hover {
    background: #f9fafb;
}

.category-name {
    font-size: 0.875rem;
    color: #374151;
    transition: color 0.3s;
}

.category-item:hover .category-name {
    color: var(--primary-color, #3B82F6);
}

.category-count {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

/* Tags Widget */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Archive Widget */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.archive-item {
    display: block;
    font-size: 0.875rem;
    color: #374151;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.archive-item:hover {
    background: #f9fafb;
    color: var(--primary-color, #3B82F6);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color, #3B82F6);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1d5db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #d1d5db;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .content-grid {
        grid-template-columns: 3fr 1fr;
        gap: 2rem;
    }

    .main-column {
        grid-column: 1;
    }

    .sidebar-column {
        grid-column: 2;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}
