/* ========================================
   Midibro Page Specific Styles
   ======================================== */

/* Download Buttons */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2em;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-btn.macos {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.download-btn.windows {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.download-btn.changelog {
    padding: 12px 25px;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.download-btn.changelog:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.download-btn::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.8s ease;
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn span {
    font-size: 1.5em;
}

.download-btn.changelog span {
    font-size: 1.2em;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin: 100px 0;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.feature-card h2 {
    font-size: 2em;
    margin-bottom: 25px;
    background: linear-gradient(45deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 1.4em;
    margin: 20px 0 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.feature-card li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-size: 1em;
}

.feature-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
}

/* Workflow Options */
.workflow-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.workflow-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 30px;
}

.workflow-box h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.workflow-box p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Video Section */
.video-section {
    text-align: center;
    margin: 80px 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* Secondary Hero for Other Projects */
.hero-secondary {
    margin-top: 150px;
    text-align: center;
    padding: 100px 40px;
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%),
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.2), transparent 50%);
    backdrop-filter: blur(30px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-secondary h2 {
    font-size: 4em;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(45deg, 
        var(--secondary), 
        var(--cyan), 
        var(--emerald));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTextFlow 8s ease-in-out infinite;
    position: relative;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
}

.hero-secondary h2::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, 
        rgba(139, 92, 246, 0.3), 
        rgba(6, 182, 212, 0.3), 
        rgba(16, 185, 129, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    transform: translateY(4px) translateX(4px);
    filter: blur(2px);
}

.hero-secondary .subtitle {
    font-size: 1.8em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 80px 0;
}

.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 25px 25px 0 0;
}

.project-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--cyan), var(--emerald));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.3);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--secondary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-card h3 span {
    font-size: 1.2em;
}

.project-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-card-link {
    display: inline-block;
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    background: rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.project-card-link:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--cyan);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    background: rgba(139, 92, 246, 0.2);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .workflow-options {
        grid-template-columns: 1fr;
    }
    
    .hero-secondary h2 {
        font-size: 2.5em;
    }
    
    /* Enhanced mobile readability */
    .feature-card {
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
        backdrop-filter: blur(15px);
    }
    
    .project-card {
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    }
    
    .project-card-content {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .hero-secondary {
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%),
            linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.03) 100%);
        backdrop-filter: blur(15px);
    }
}