/* =============================================
   PRODUCTIONHUB STYLE PROFILE
============================================= */

.ph-profile-wrapper,
.ph-profile-wrapper * {
    box-sizing: border-box;
    font-family: 'Gilroy', sans-serif !important;
}

.ph-profile-wrapper {
    background: #f5f5f5;
    min-height: 100vh;
}

.ph-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ph-container-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =============================================
   BREADCRUMBS
============================================= */
.ph-breadcrumbs-wrapper {
    background: #f5f5f5;
    padding: 20px 0;
}

.ph-breadcrumbs {
    font-size: 15px;
    color: #6b7280;
}

.ph-breadcrumbs a {
    color: #FFD230;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ph-breadcrumbs a:hover {
    color: #e6bd1f;
    text-decoration: underline;
}

.ph-breadcrumbs span.breadcrumb_last {
    color: #374151;
    font-weight: 400;
}

/* =============================================
   HEADER SECTION
============================================= */
.ph-profile-header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 30px 0;
}

.ph-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.ph-profile-photo {
    flex-shrink: 0;
}

.ph-profile-photo .ph-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.ph-logo-placeholder {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px solid #e5e5e5;
}

.ph-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ph-profile-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    color: #222 !important;
    line-height: 1.3 !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ph-location-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 15px;
    margin-bottom: 16px;
}

.ph-location-line svg {
    flex-shrink: 0;
}

.ph-header-social {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ph-social-btn {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.ph-social-btn:hover {
    background: #e0e0e0;
    color: #222;
}

/* Contact Dropdown */
.ph-contact-dropdown {
    position: relative;
    display: inline-block;
    align-self: flex-start;
}

.ph-contact-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.ph-contact-btn:hover {
    background: #0052a3;
}

.ph-arrow-down {
    transition: transform 0.2s;
}

.ph-contact-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.ph-contact-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ph-contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.ph-contact-option:last-child {
    border-bottom: none;
}

.ph-contact-option:hover {
    background: #f5f5f5;
}

.ph-contact-option svg {
    color: #666;
    flex-shrink: 0;
}

/* =============================================
   MAIN GRID LAYOUT
============================================= */
.ph-profile-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 30px 0;
}

/* =============================================
   MAIN CONTENT (LEFT COLUMN)
============================================= */
.ph-main-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.ph-section {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.ph-section:last-child {
    border-bottom: none;
}

.ph-section-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    color: #222 !important;
    line-height: 1.3 !important;
}

.ph-about-content {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.ph-about-content p {
    margin-bottom: 16px;
}

.ph-about-content p:last-child {
    margin-bottom: 0;
}

/* Portfolio Grid */
.ph-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.ph-portfolio-item {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
}

.ph-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ph-portfolio-item:hover img {
    transform: scale(1.05);
}

.ph-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.ph-portfolio-item:hover .ph-portfolio-overlay {
    opacity: 1;
}

/* Image Viewer (Ungrouped Portfolio) */
.ph-image-viewer-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ph-main-image {
    width: 100%;
}

.ph-image-display {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-image-display img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

/* Image Gallery (Thumbnails) */
.ph-image-gallery {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

.ph-image-gallery h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 16px 0 !important;
    color: #222 !important;
    line-height: 1.4 !important;
}

.ph-gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.ph-gallery-thumb {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.ph-gallery-thumb:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ph-gallery-thumb.active {
    border-color: #FFD230;
    box-shadow: 0 4px 12px rgba(255, 210, 48, 0.3);
}

.ph-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal/Lightbox */
.ph-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.ph-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.ph-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}

.ph-modal-close:hover {
    color: #ccc;
}

.ph-modal-prev,
.ph-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-modal-prev:hover,
.ph-modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ph-modal-prev {
    left: -60px;
}

.ph-modal-next {
    right: -60px;
}

.ph-modal-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    padding: 10px;
}

/* Video Player Container */
.ph-video-player-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Main Video Player */
.ph-main-video {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ph-video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.ph-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.ph-video-info h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #222 !important;
    line-height: 1.3 !important;
}

/* Video Playlist */
.ph-video-playlist {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

.ph-video-playlist h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 16px 0 !important;
    color: #222 !important;
    line-height: 1.4 !important;
}

.ph-playlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ph-playlist-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.2s;
    background: white;
    border: 2px solid transparent;
    overflow: hidden;
}

.ph-playlist-item:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ph-playlist-item.active {
    border-color: #FFD230;
    box-shadow: 0 4px 12px rgba(255, 210, 48, 0.3);
}

.ph-playlist-item img,
.ph-video-thumb-placeholder {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
}

.ph-video-thumb-placeholder {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.ph-playlist-item-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ph-playlist-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
}

/* =============================================
   SIDEBAR (RIGHT COLUMN)
============================================= */
.ph-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ph-sidebar-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.ph-sidebar-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 16px 0 !important;
    color: #222 !important;
    line-height: 1.4 !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.ph-sidebar-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.ph-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ph-category-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.ph-category-tag:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-1px);
}

.ph-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-sidebar-list li {
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
    line-height: 1.5;
}

.ph-sidebar-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ph-sidebar-list li:first-child {
    padding-top: 0;
}

.ph-awards-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ph-awards-list svg {
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

/* =============================================
   RESPONSIVE DESIGN
============================================= */
@media (max-width: 968px) {
    .ph-profile-grid {
        grid-template-columns: 1fr;
    }

    .ph-sidebar {
        order: -1;
    }

    .ph-playlist-items {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .ph-container-full {
        padding: 0 20px;
    }

    .ph-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ph-header-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ph-profile-title {
        font-size: 22px !important;
    }

    .ph-header-social {
        justify-content: center;
    }

    .ph-contact-dropdown {
        align-self: center;
    }

    .ph-portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .ph-section {
        padding: 20px;
    }

    .ph-section-title {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .ph-container {
        padding: 0 16px;
    }

    .ph-profile-header {
        padding: 20px 0;
    }

    .ph-profile-photo .ph-logo,
    .ph-logo-placeholder {
        width: 100px;
        height: 100px;
    }

    .ph-profile-title {
        font-size: 20px !important;
    }

    .ph-section-title {
        font-size: 18px !important;
    }

    .ph-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .ph-contact-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .ph-playlist-items {
        grid-template-columns: 1fr;
    }

    .ph-gallery-items {
        grid-template-columns: 1fr;
    }

    .ph-modal-prev {
        left: 10px;
    }

    .ph-modal-next {
        right: 10px;
    }

    .ph-modal-close {
        top: 10px;
        right: 10px;
    }

    .ph-modal-caption {
        bottom: 10px;
        font-size: 14px;
    }
}

/* =============================================
   ELEMENTOR COMPATIBILITY
============================================= */
.ph-profile-wrapper a.ph-social-btn {
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    border: none;
}
.ph-profile-wrapper a.ph-social-btn:hover {
    background: #e0e0e0;
    color: #222;
    text-decoration: none;
}
.ph-profile-wrapper button.ph-contact-btn {
    background: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
}
.ph-profile-wrapper button.ph-contact-btn:hover {
    background: #0052a3;
    color: white;
}
.ph-profile-wrapper a.ph-contact-option {
    color: #333;
    text-decoration: none;
    background: transparent;
}
.ph-profile-wrapper a.ph-contact-option:hover {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}
.ph-profile-wrapper a.ph-category-tag {
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    border: none;
}
.ph-profile-wrapper a.ph-category-tag:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}
.ph-profile-wrapper button.ph-modal-prev,
.ph-profile-wrapper button.ph-modal-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    cursor: pointer;
}
.ph-profile-wrapper button.ph-modal-prev:hover,
.ph-profile-wrapper button.ph-modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}
