/* Blog List Styles */
/* Removed conflicting blog-hero styles - now using standardized hero-secondary from cyberpunk-base.css */

/* Search Section Styles */
.search-section {
  background: transparent;
  padding: 3rem 0;
  margin: 0;
  border: none;
  position: relative;
}

.search-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-section .section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.search-section .section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0.8;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-element:nth-child(1) { 
    top: 5%; 
    left: 15%; 
    animation-delay: 0s; 
}
.floating-element:nth-child(2) { 
    top: 15%; 
    right: 10%; 
    animation-delay: 1.5s; 
}

/* Removed old hero-center-element styles - using standardized hero-secondary */

/* Removed old hero-center-element::before styles */

/* Removed old inner-ring and code-symbol styles */

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    25% { 
        transform: translateY(-25px) rotate(5deg); 
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
    50% { 
        transform: translateY(0px) rotate(0deg); 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    75% { 
        transform: translateY(-15px) rotate(-5deg); 
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    }
}

@keyframes centerPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 50px var(--primary-glow);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 80px var(--primary-glow);
    }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-card {
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary);
}

.likes-count {
    color: var(--text-secondary);
    font-weight: 500;
}

.likes-count i {
    color: #ef4444;
    transition: all 0.3s ease;
}

.likes-count:hover i {
    color: #dc2626;
    transform: scale(1.1);
}

.post-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--glass-bg);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tag:hover {
    background: var(--primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Like button styles removed - like functionality is only available on individual blog detail pages */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    padding: 2rem;
    border-radius: var(--border-radius-lg);
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-post:hover {
    background: var(--glass-bg);
    transform: translateX(5px);
}

.popular-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.popular-post-content h5 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.popular-post-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag-count {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.current-page {
    color: var(--text-secondary);
    font-weight: 600;
}

.tag-filter-notice {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.no-posts {
    text-align: center;
    padding: 3rem 2rem;
}

.no-posts h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-posts p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.floating-create-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-create-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.search-form {
    margin-top: 1.5rem;
    position: relative;
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    box-shadow: none;
    align-items: center;
    justify-content: center;
}

.search-input {
    flex: 0 1 280px;
    padding: 0.8rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-input:focus {
    border-color: rgba(100, 254, 218, 0.5);
    box-shadow: 0 0 0 2px rgba(100, 254, 218, 0.15);
    background: rgba(100, 254, 218, 0.05);
}

.search-form .search-btn.btn-cyber {
    white-space: nowrap;
    background: rgba(100, 254, 218, 0.15);
    border: 1px solid rgba(100, 254, 218, 0.3);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: rgba(100, 254, 218, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    max-width: 120px;
    backdrop-filter: blur(10px);
}

.search-form .search-btn.btn-cyber:hover {
    background: rgba(100, 254, 218, 0.25);
    border-color: rgba(100, 254, 218, 0.5);
    color: rgba(100, 254, 218, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 254, 218, 0.2);
}

.search-form .search-btn.btn-cyber:active {
    transform: translateY(0);
    background: rgba(100, 254, 218, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .search-section {
        padding: 2rem 0;
    }
    
    .search-section .section-header h2 {
        font-size: clamp(1.6rem, 3vw, 2rem);
    }
    
    .search-container {
        max-width: 450px;
    }
    
    /* Removed old hero-container, hero-visual, and hero-center-element styles */
    
    .inner-ring {
        width: 200px;
        height: 200px;
    }
    
    .floating-element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Removed blog-hero responsive styles - using standardized hero-secondary */
    
    .post-meta {
        gap: 1rem;
    }
    
    .post-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-section {
        padding: 1.5rem 0;
    }
    
    .search-section .section-header h2 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }
    
    .search-section .section-header p {
        font-size: 0.9rem;
    }
    
    .search-container {
        flex-direction: column;
        max-width: 350px;
        gap: 0.8rem;
        align-items: center;
        justify-content: center;
    }
    
    .search-input {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .search-form .search-btn.btn-cyber {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.85rem !important;
        min-height: 36px !important;
        width: auto !important;
        max-width: 100px !important;
    }
    
    .floating-create-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Removed old hero-buttons styles - using standardized hero-secondary-buttons */
    
    .btn-cyber, .btn-outline-cyber {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Removed old hero-center-element and inner-ring styles */
    
    .code-symbol {
        font-size: 3rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .search-section {
        padding: 1rem 0;
    }
    
    .search-section .section-header h2 {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }
    
    .search-section .section-header p {
        font-size: 0.85rem;
    }
    
    .search-container {
        gap: 0.6rem;
        max-width: 300px;
        align-items: center;
        justify-content: center;
    }
    
    .search-input {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .search-form .search-btn.btn-cyber {
        padding: 0.6rem 0.7rem !important;
        font-size: 0.8rem !important;
        min-height: 32px !important;
        width: auto !important;
        max-width: 90px !important;
    }
}

/* ===== Tags Page Styles ===== */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tag-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tag-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(100, 254, 218, 0.3);
}

.tag-card:hover::before {
    opacity: 1;
}

.tag-content {
    position: relative;
    z-index: 1;
}

.tag-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.tag-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-title a:hover {
    color: var(--primary);
}

.tag-title i {
    color: var(--primary);
    font-size: 1rem;
}

.tag-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.tag-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-count i {
    color: var(--primary);
    font-size: 0.8rem;
}

.tag-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: auto;
}

.no-tags, .no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.no-tags h3, .no-results h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-tags p, .no-results p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Tags Page Responsive Design */
@media (max-width: 768px) {
    .tags-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tag-card {
        padding: 1.25rem;
    }
    
    .tag-title {
        font-size: 1.1rem;
    }
    
    .tag-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tag-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .tags-grid {
        gap: 0.8rem;
    }
    
    .tag-card {
        padding: 1rem;
    }
    
    .tag-title {
        font-size: 1rem;
    }
    
    .tag-count {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}