/* Dev Journal specific styles */
.journal-hero {
    min-height: 60vh;
    background: linear-gradient(180deg, #000 0%, #111 100%);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0ff;
    text-decoration: none;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(0, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #fff;
    text-shadow: 0 0 5px #0ff;
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.journal-content {
    background: linear-gradient(180deg, #111 0%, #000 100%);
    padding: 2rem 0;
    min-height: 100vh;
}

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

.journal-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-button {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}

.filter-button.active {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.5);
    color: #0ff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.journal-entries {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.journal-entry {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.journal-entry:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.entry-date {
    color: #0ff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.entry-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    transition: text-shadow 0.3s ease;
}

.entry-title:hover {
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.entry-content {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.code-snippet {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.code-snippet pre {
    margin: 0;
}

.code-snippet code {
    font-family: 'Courier New', Courier, monospace;
    color: #0ff;
    font-size: 0.9rem;
    line-height: 1.5;
}

.quote {
    border-left: 3px solid rgba(0, 255, 255, 0.5);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.quote blockquote {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.6;
}

.project-image {
    margin: 1.5rem 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.02);
}

/* Image grid layout */
.image-grid {
    position: relative;
    margin: 1.5rem 0;
    cursor: pointer;
}

.image-grid .project-image {
    margin: 0;
    position: relative;
}

.image-grid .project-image:first-child {
    display: block;
}

.image-grid .project-image:not(:first-child) {
    display: none;
}

.image-grid .project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-grid .project-image:hover img {
    transform: scale(1.02);
}

/* Additional images overlay */
.image-count-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Remove the hover effect since it's always visible */
.image-grid:hover .image-count-overlay {
    opacity: 1;
}

.image-count-overlay i {
    font-size: 1rem;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

.lightbox-image:active {
    cursor: grabbing;
}

/* Add visual feedback for touch/swipe */
.lightbox-image.swiping {
    transition: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* Lightbox navigation bar */
.lightbox-nav-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.lightbox-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav-dot.active {
    background: #0ff;
    transform: scale(1.2);
}

.lightbox-nav-dot:hover {
    background: rgba(0, 255, 255, 0.5);
}

/* Adjust lightbox navigation buttons to not overlap with nav bar */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 40px; /* Add space for nav bar */
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.entry-content a {
    color: #0ff;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.entry-content a:hover {
    color: #fff;
    text-shadow: 0 0 5px #0ff;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 255, 255, 0.1);
    color: #0ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .journal-entry {
        padding: 1.5rem;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .code-snippet {
        padding: 0.75rem;
    }
    
    .code-snippet code {
        font-size: 0.8rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .lightbox-nav button {
        padding: 20px;
        min-width: 60px;
        min-height: 60px;
    }
    
    .lightbox-close {
        padding: 15px;
        min-width: 50px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .journal-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-button {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .journal-entry {
        padding: 1rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.pagination-button {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}

.pagination-button.active {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.5);
    color: #0ff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-button.disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

.pagination-ellipsis {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.25rem;
    user-select: none;
} 

.special{
    color: #0ff;
}

.spotify-embed-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 24px 0;
}

.spotify-embed-container iframe {
  max-width: 400px;
  width: 100%;
  min-width: 250px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}