/* ========================================
   SHORTCODES STYLES
   ======================================== */

/* Base Shortcode Error Styling */
.shortcode-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #dc2626;
    font-size: 0.9rem;
}

.shortcode-error p {
    margin: 0.25rem 0;
}

.shortcode-error code {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ========================================
   YOUTUBE EMBED STYLES
   ======================================== */
.youtube-embed-wrapper {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: var(--blog-glass-bg, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid var(--blog-glass-border, rgba(255, 255, 255, 0.1));
}

.youtube-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.youtube-embed-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-embed-overlay {
    display: none;
}

.youtube-embed-container:hover .youtube-embed-overlay {
    opacity: 1;
}

.youtube-play-button {
    display: none;
}

.youtube-embed-overlay:hover .youtube-play-button {
    display: none;
}

.youtube-embed-title {
    display: none;
}

.youtube-embed-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--blog-glass-bg, rgba(255, 255, 255, 0.02));
}

.youtube-embed-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blog-text-secondary, #64748b);
    font-size: 0.9rem;
    font-weight: 500;
}

.youtube-icon {
    flex-shrink: 0;
}

.youtube-external-link {
    color: var(--blog-text-primary, #1e293b);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.youtube-external-link:hover {
    color: #ff0000;
}

/* ========================================
   PLATFORM LINKS STYLES
   ======================================== */
.platform-link {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: var(--blog-glass-bg, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid var(--blog-glass-border, rgba(255, 255, 255, 0.1));
    transition: all 0.3s ease;
}

.platform-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.platform-link-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.platform-content {
    flex: 1;
    min-width: 0;
}

.platform-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--blog-text-primary, #1e293b);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.platform-description {
    font-size: 0.875rem;
    color: var(--blog-text-secondary, #64748b);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.platform-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--blog-text-secondary, #64748b);
    transition: all 0.2s ease;
}

.platform-link:hover .platform-arrow {
    color: var(--blog-text-primary, #1e293b);
    transform: translateX(2px);
}

/* GitHub Specific Styles */
.github-link {
    border-left: 4px solid #24292f;
}

.github-icon {
    background: linear-gradient(135deg, #24292f 0%, #1c2128 100%);
    color: white;
}

.github-badge {
    background: rgba(36, 41, 47, 0.1);
    color: #24292f;
}

.github-link:hover .github-icon {
    background: linear-gradient(135deg, #1c2128 0%, #24292f 100%);
    transform: scale(1.05);
}

/* Steam Specific Styles */
.steam-link {
    border-left: 4px solid #1b2838;
}

.steam-icon {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: white;
}

.steam-badge {
    background: rgba(27, 40, 56, 0.1);
    color: #1b2838;
}

.steam-link:hover .steam-icon {
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    transform: scale(1.05);
}

/* PlayStation Specific Styles */
.playstation-link {
    border-left: 4px solid #003791;
}

.playstation-icon {
    background: linear-gradient(135deg, #003791 0%, #0070f3 100%);
    color: white;
}

.playstation-badge {
    background: rgba(0, 55, 145, 0.1);
    color: #003791;
}

.playstation-link:hover .playstation-icon {
    background: linear-gradient(135deg, #0070f3 0%, #003791 100%);
    transform: scale(1.05);
}

/* Nintendo Specific Styles */
.nintendo-link {
    border-left: 4px solid #e60012;
}

.nintendo-icon {
    background: linear-gradient(135deg, #e60012 0%, #ff4444 100%);
    color: white;
}

.nintendo-badge {
    background: rgba(230, 0, 18, 0.1);
    color: #e60012;
}

.nintendo-link:hover .nintendo-icon {
    background: linear-gradient(135deg, #ff4444 0%, #e60012 100%);
    transform: scale(1.05);
}

/* Discord Specific Styles */
.discord-link {
    border-left: 4px solid #5865f2;
}

.discord-icon {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: white;
}

.discord-badge {
    background: rgba(88, 101, 242, 0.1);
    color: #5865f2;
}

.discord-link:hover .discord-icon {
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
    transform: scale(1.05);
}

.platform-mention {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    color: var(--blog-text-secondary, #64748b);
    background: rgba(88, 101, 242, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.discord-user-only {
    cursor: default;
}

.discord-user-only:hover {
    transform: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .youtube-embed-wrapper {
        margin: 1.5rem 0;
        border-radius: 8px;
    }
    
    .youtube-embed-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .platform-link-content {
        padding: 1rem;
    }
    
    .platform-icon {
        width: 40px;
        height: 40px;
    }
    
    .platform-title {
        font-size: 0.9rem;
    }
    
    .platform-description {
        font-size: 0.8rem;
    }
    
    .platform-mention {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .youtube-embed-title {
        display: none;
    }
    
    .platform-link-content {
        gap: 0.75rem;
    }
    
    .platform-arrow {
        width: 28px;
        height: 28px;
    }
}