/* ===== PROFILE SECTION STYLES ===== */

.profile-section {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(30, 10, 40, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.profile-admin-controls {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.profile-card:hover::before {
    transform: scaleX(1);
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.profile-card-wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .profile-card-wide {
        grid-column: span 1;
    }
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.profile-card-header h3 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin: 0;
    letter-spacing: 1px;
}

.profile-value {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-family: var(--font-body);
}

/* Profile Picture Card */
.profile-pic-card {
    grid-column: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic-container {
    width: 200px;
    height: 200px;
    position: relative;
}

.profile-display-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.profile-pic-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.profile-pic-placeholder span {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.profile-pic-placeholder p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
}

/* College Photo Card */
.college-photo-card {
    grid-column: span 1;
}

.college-photo-container {
    width: 100%;
    height: 180px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.college-display-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.college-photo-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.college-photo-placeholder span {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.college-photo-placeholder p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
}

/* Social Links */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.social-link span {
    font-size: 1.2rem;
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Profile Edit Modal */
.profile-edit-modal {
    width: 90vw;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
}

.profile-edit-modal h3 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-color);
    font-size: 2rem;
}

.profile-edit-modal h4 {
    color: var(--accent-secondary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.cancel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Scrollbar for modal */
.profile-edit-modal::-webkit-scrollbar {
    width: 8px;
}

.profile-edit-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.profile-edit-modal::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.profile-edit-modal::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-display-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .profile-pic-container {
        width: 150px;
        height: 150px;
    }

    .college-photo-container {
        height: 150px;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .profile-edit-modal {
        width: 95vw;
        padding: 1.5rem;
        max-height: 90vh;
    }
}