/* Galeri Page - Industrial Luxury Masonry Design */

/* --- 1. HERO SECTION --- */
.page-header {
    background: linear-gradient(rgba(11, 26, 42, 0.9), rgba(11, 26, 42, 0.8)), url('../../assets/img/hero/hero-1.jpg');
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
    text-align: center;
}

.page-header h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 950;
    letter-spacing: -1px;
    margin-top: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.section-label {
    color: #ffffff !important;
    font-weight: 950;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumb a { color: var(--accent-500); text-decoration: none; transition: 0.3s; }
.breadcrumb a:hover { color: #fff; }

/* --- 2. COMPANY CARDS (NEW) --- */
.gallery-section {
    padding: 60px 0 100px;
    background: #fff;
}

.section-header-simple {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-simple h2 {
    font-size: 2.5rem;
    color: var(--primary-900);
    margin-bottom: 10px;
}

.section-header-simple p {
    color: var(--primary-600);
    font-size: 1.1rem;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* FİRMALAR 3'LÜ DÜZEN */
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.company-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(11, 30, 53, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--neutral-100);
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 30, 53, 0.12);
    border-color: var(--accent-500);
}

.company-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.company-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.company-card:hover .company-card-img img {
    transform: scale(1.1);
}

.company-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-900);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
}

.company-card-info {
    padding: 20px;
    text-align: center;
}

.company-card-info h3 {
    font-size: 1rem;
    color: var(--primary-900);
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.3;
}

.view-album {
    font-size: 0.8rem;
    color: var(--accent-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.3s;
}

.company-card:hover .view-album {
    gap: 10px;
}

/* --- 3. ALBUM DETAILS --- */
.album-details-section {
    padding: 60px 0 100px;
    background: #fff;
    min-height: 600px;
}

.album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--neutral-100);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--neutral-100);
    color: var(--primary-900);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.back-btn:hover {
    background: var(--primary-900);
    color: var(--white);
}

.album-title-area {
    text-align: right;
}

.album-title-area h2 {
    font-size: 2rem;
    color: var(--primary-900);
    margin: 0;
}

#imageCount {
    color: var(--accent-500);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* ALBÜM İÇİ 5'Lİ DÜZEN */
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(232, 88, 15, 0.85); /* Accent rengi transparan kaplama */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
    transform: scale(0.5);
    transition: 0.4s;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* --- 5. LIGHTBOX --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 30, 53, 0.98);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    margin-top: 25px;
    text-align: center;
}

#lbCat {
    color: var(--accent-500);
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 8px;
}

#lbTitle {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.6;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    opacity: 1;
    color: var(--accent-500);
}

.lightbox-close { top: 30px; right: 30px; }
.lightbox-prev { top: 50%; left: 30px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 30px; transform: translateY(-50%); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .company-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .company-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .page-header h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .company-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .album-header { flex-direction: column; gap: 20px; text-align: center; }
    .album-title-area { text-align: center; }
}

@media (max-width: 480px) {
    .company-grid, .gallery-grid { grid-template-columns: 1fr; }
}
