/**
 * Services Page Template Styles
 * 
 * @package FotoShopcu
 */

/* Service Page Styles */
.service-page {
    padding: 40px 0;
}

/* Blog Header Styles */
.blog-header {
    margin-bottom: 30px;
    position: relative;
    text-align: left;
}

.blog-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #e0e0e0;
    text-align: left;
}

.blog-title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--main-color, #fcd307);
    margin: 0 0 30px;
}

/* Services Grid Layout - 5 Columns */
.services-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.services-grid-5 .fotoshopcu-service-item {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.services-grid-5 .fotoshopcu-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.services-grid-5 .fotoshopcu-service-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.services-grid-5 .fotoshopcu-service-content {
    padding: 15px;
}

.services-grid-5 .fotoshopcu-service-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.services-grid-5 .fotoshopcu-service-excerpt {
    color: #d0d0d0;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.services-grid-5 .fotoshopcu-service-price {
    color: #2271b1;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.services-grid-5 .fotoshopcu-service-link {
    display: inline-block;
    background-color: #2271b1;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.services-grid-5 .fotoshopcu-service-link:hover {
    background-color: #185886;
}

/* Category Filters */
.service-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.category-filter {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.category-filter:hover {
    background: #3a3a3a;
}

.category-filter.active {
    background: #2271b1;
    color: white;
    border: none;
}

/* Services categories styling */
.services-categories-container {
    margin-bottom: 30px;
    font-family: inherit;
}

.fotoshopcu-services-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.fotoshopcu-category-filter {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: inherit;
    color: #e0e0e0;
}

.fotoshopcu-category-filter:hover {
    background-color: #3a3a3a;
}

.fotoshopcu-category-filter.active {
    background-color: var(--main-color, #fcd307);
    color: white;
    border: none;
}

/* Override blog grid for services with 5 columns */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

/* Services item styling - Modern Card Design */
.blog-grid-item.fotoshopcu-service-item {
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    position: relative;
    border: none;
    margin-bottom: 10px;
}

.blog-grid-item.fotoshopcu-service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

/* Service link wrapper for clickable card */
.service-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    position: relative;
    flex-grow: 1;
}

/* Service thumbnail with overlay effect */
.blog-thumbnail.service-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.services-grid-5 .blog-thumbnail.service-thumbnail {
    height: 180px;
}

.blog-thumbnail.service-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-grid-item.fotoshopcu-service-item:hover .blog-thumbnail.service-thumbnail img {
    transform: scale(1.1);
}

.blog-thumbnail.service-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Service content styling */
.blog-content.service-content {
    padding: 25px 0 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.entry-title.service-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color, #e0e0e0);
}

.services-grid-5 .entry-title.service-title {
    font-size: 18px;
}

.entry-title.service-title a {
    color: var(--text-color, #e0e0e0);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title.service-title a:hover {
    color: var(--main-color, #fcd307);
    text-decoration: none;
}

.service-price {
    display: inline-block;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    background-color: var(--main-color, #fcd307);
    padding: 6px 12px;
    border-radius: 30px;
}

.services-grid-5 .service-price {
    font-size: 14px;
    padding: 5px 10px;
}

.entry-summary.service-summary {
    margin-bottom: 20px;
    flex: 1;
    font-size: 15px;
    color: var(--text-color, #d0d0d0);
    line-height: 1.6;
}

.services-grid-5 .entry-summary.service-summary {
    font-size: 14px;
    margin-bottom: 15px;
}

.service-excerpt {
    margin-bottom: 8px;
    flex: 1;
    font-size: 14px;
    color: var(--text-color, #d0d0d0);
    line-height: 1.5;
}

.service-excerpt-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.services-grid-5 .service-excerpt {
    font-size: 13px;
    margin-bottom: 6px;
}

.services-grid-5 .service-excerpt-text {
    -webkit-line-clamp: 2;
}

.service-read-more-link {
    color: var(--color-primary, #fcd307);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.3s ease;
    display: inline;
}

.service-read-more-link:hover {
    color: var(--color-primary-dark, #d4b106);
    text-decoration: underline;
}

.services-grid-5 .service-read-more-link {
    font-size: 12px;
}

.read-more-container {
    margin-top: auto;
}

.read-more.service-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--main-color, #fcd307);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.services-grid-5 .read-more.service-link {
    font-size: 14px;
    padding: 8px 16px;
}

.read-more.service-link:hover {
    background-color: var(--main-color, #fcd307);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.fotoshopcu-no-services {
    text-align: center;
    padding: 40px;
    background: #000;
    border-radius: 16px;
    color: var(--text-color, #e0e0e0);
    font-size: 16px;
    margin-bottom: 60px;
}

/* Service category badge */
.service-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color, #e0e0e0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Service Quote Button */
.service-quote-button {
    padding: 10px 0 15px;
    margin-top: auto;
    flex-shrink: 0;
}

.services-grid-5 .service-quote-button {
    padding: 8px 0 12px;
}

.service-quote-button-link {
    width: 100%;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
}

.service-quote-button-link span {
    color: var(--color-button-text) !important;
}

.service-quote-button-link:hover {
    text-decoration: none !important;
}

.service-quote-button-link:hover span {
    color: var(--color-button-text) !important;
}

/* Container için ekstra alt boşluk */
.blog-archive-container {
    margin-bottom: 60px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .services-grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .services-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-title-underline {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 575px) {
    .services-grid,
    .services-grid-5 {
        grid-template-columns: 1fr;
    }
    
    .fotoshopcu-services-categories {
        justify-content: center;
    }
    
    .services-grid-5 .blog-thumbnail.service-thumbnail {
        height: 220px;
    }
}

/* Service link wrapper hover işleminde de text-decoration:none olması için */
.service-link-wrapper:hover {
    text-decoration: none;
}

/* Services Page Content - Full Width (like full-widget-page) */
/* Override .page .entry-content styles with higher specificity */
.page .entry-content.services-page-content,
.entry-content.services-page-content,
.services-page-content {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    box-sizing: border-box;
}

.services-page-content > * {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Container full width for services page */
.container-full-width {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.container-full-width .blog-header {
    padding: 0 30px;
    box-sizing: border-box;
}

.container-full-width .blog-grid {
    padding: 0 30px;
    box-sizing: border-box;
}

/* Ensure site-main doesn't add padding for services page */
.services-page-main {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

/* Mobile overrides for services page content */
@media (max-width: 768px) {
    .page .entry-content.services-page-content,
    .entry-content.services-page-content,
    .services-page-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
    
    .container-full-width .blog-header,
    .container-full-width .blog-grid {
        padding: 0 15px;
    }
} 