/* Components CSS - Media Player & Other Components */

/* Media Player */
.media-player {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 260px;
    background: var(--window-bg);
    border: 2px solid #000;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
    z-index: 9;
    transition: all 0.3s ease;
}

.media-player.minimized {
    transform: scale(0.1);
    opacity: 0.3;
}

.media-header {
    background: var(--accent-blue);
    color: var(--text-light);
    padding: 0.4rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.media-title {
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.media-controls {
    display: flex;
    gap: 0.3rem;
}

.media-btn {
    width: 1.4rem;
    height: 1.4rem;
    background: var(--window-bg);
    border: 1px solid;
    border-color: var(--border-raised);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.media-btn:hover {
    background: #a0a0a0;
}

.media-btn:active {
    border-color: var(--border-sunken);
}

.media-content {
    padding: 1rem;
    text-align: center;
    height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--window-bg);
}

.album-art {
    width: 140px;
    height: 140px;
    background: #000;
    margin-bottom: 0.8rem;
    border: 2px solid var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 3rem;
}

.now-playing {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.track-title {
    color: var(--accent-blue);
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.artist-name {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: #fff;
    border: 1px solid #808080;
    margin: 0.8rem 0;
    position: relative;
    width: 100%;
}

.progress {
    height: 100%;
    width: 65%;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    width: 100%;
    color: var(--text-primary);
}

/* Page Content Styles */
.page-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-blue);
}

.back-button {
    background: var(--window-bg);
    border: 2px solid;
    border-color: var(--border-raised);
    padding: 0.5rem 1.5rem;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.back-button:hover {
    background: var(--accent-blue);
    color: var(--text-light);
    border-color: var(--border-sunken);
}

.page-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-blue);
    margin: 0;
}

.page-body {
    line-height: 1.6;
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar {
    width: 150px;
    height: 150px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.profile-info {
    text-align: center;
}

.profile-info h3 {
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.profile-info p {
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.profile-details {
    flex: 1;
}

.profile-details h3 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.profile-details p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Skills Grid */
.skills-section {
    margin-top: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-item {
    background: var(--window-bg);
    border: 1px solid #808080;
    padding: 0.8rem;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

.skill-item:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--window-bg);
    border: 2px solid;
    border-color: var(--border-raised);
    padding: 1.5rem;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
    border-color: var(--border-sunken);
}

.project-preview {
    width: 100%;
    height: 160px;
    background: var(--accent-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
    border: 2px solid #000;
}

.project-preview img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.project-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 0.9rem;
    text-align: center;
    color: #333;
    line-height: 1.4;
}

/* Contact Form */
.contact-section {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    flex: 1;
}

.contact-form-container {
    flex: 1;
}

.contact-card {
    background: var(--window-bg);
    border: 1px solid #808080;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--accent-blue);
}

.contact-details strong {
    display: block;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.availability-card {
    background: var(--accent-blue);
    color: var(--text-light);
    padding: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    padding: 0.8rem;
    background: #fff;
    border: 1px solid #808080;
    font-family: var(--font-family);
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 5px rgba(0, 0, 128, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    padding: 1rem;
    background: var(--accent-blue);
    color: var(--text-light);
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.form-submit:hover {
    background: #000060;
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design for Components */
@media (max-width: 768px) {
    .media-player {
        bottom: 20px;
        right: 20px;
        width: 220px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-avatar {
        align-self: center;
    }
    
    .contact-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-content {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .back-button {
        margin-right: 0;
    }
    
    /* Fix About Me page responsiveness */
    .profile-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .profile-details p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .profile-info h3 {
        font-size: 1.2rem;
    }
    
    .profile-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .media-player {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 1rem;
    }
    
    .page-content {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .back-button {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}