/**
 * Premium Theme CMS - Frontend Styles
 */

/* Portfolio Shortcode */
.ptcms-portfolio-shortcode {
    margin: 20px 0;
}

.portfolio-filter {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,115,170,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-link,
.portfolio-zoom {
    color: white;
    font-size: 20px;
    margin: 0 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.portfolio-link:hover,
.portfolio-zoom:hover {
    transform: scale(1.2);
    color: white;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.portfolio-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-content h3 a:hover {
    color: #0073aa;
}

.portfolio-meta {
    color: #666;
    font-size: 14px;
}

/* Testimonials Shortcode */
.ptcms-testimonials-shortcode {
    margin: 20px 0;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: #0073aa;
    font-family: serif;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.star {
    color: #ddd;
    font-size: 16px;
    margin: 0 2px;
}

.star.filled {
    color: #ffc107;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.position,
.company {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Team Shortcode */
.ptcms-team-shortcode {
    margin: 20px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.team-member:hover .member-social {
    transform: translateY(0);
}

.member-social a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.member-social a:hover {
    color: #0073aa;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.position {
    color: #0073aa;
    font-weight: 500;
    margin-bottom: 10px;
}

.email,
.phone {
    display: block;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 5px;
}

.email:hover,
.phone:hover {
    color: #0073aa;
}

/* Services Shortcode */
.ptcms-services-shortcode {
    margin: 20px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #0073aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.service-content h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-price {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 15px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Hero Shortcode */
.ptcms-hero-shortcode {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 48px;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: #005177;
    transform: translateY(-2px);
    color: white;
}

/* Gallery Shortcode */
.ptcms-gallery-shortcode {
    margin: 20px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

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

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

.gallery-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 24px;
    text-decoration: none;
}

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

/* Contact Form Shortcode */
.ptcms-contact-form-shortcode {
    margin: 20px 0;
    max-width: 600px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.submit-button {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #005177;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Counter Shortcode */
.ptcms-counter-shortcode {
    text-align: center;
    margin: 20px 0;
}

.counter-number {
    font-size: 48px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.counter-title {
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress Bar Shortcode */
.ptcms-progress-bar-shortcode {
    margin: 20px 0;
}

.progress-title {
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.progress-bar-container {
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #0073aa;
    border-radius: 10px;
    transition: width 2s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Button Shortcode */
.ptcms-button-shortcode {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ptcms-button-shortcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ptcms-button-shortcode.button-primary {
    background: #0073aa;
    color: white;
}

.ptcms-button-shortcode.button-primary:hover {
    background: #005177;
    color: white;
}

.ptcms-button-shortcode.button-secondary {
    background: #6c757d;
    color: white;
}

.ptcms-button-shortcode.button-secondary:hover {
    background: #545b62;
    color: white;
}

.ptcms-button-shortcode.button-success {
    background: #28a745;
    color: white;
}

.ptcms-button-shortcode.button-success:hover {
    background: #1e7e34;
    color: white;
}

.ptcms-button-shortcode.button-small {
    padding: 8px 16px;
    font-size: 14px;
}

.ptcms-button-shortcode.button-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Widget Styles */
.ptcms-portfolio-widget .portfolio-widget-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ptcms-portfolio-widget .portfolio-widget-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.portfolio-widget-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.portfolio-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-widget-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.portfolio-widget-content h4 a {
    color: #333;
    text-decoration: none;
}

.portfolio-widget-content h4 a:hover {
    color: #0073aa;
}

.portfolio-widget-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Testimonials Widget */
.ptcms-testimonials-widget .testimonial-widget-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ptcms-testimonials-widget .testimonial-widget-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.testimonial-widget-content p {
    font-style: italic;
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.4;
}

.testimonial-widget-rating {
    margin-bottom: 10px;
}

.testimonial-widget-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* Team Widget */
.ptcms-team-widget .team-widget-item {
    text-align: center;
    margin-bottom: 20px;
}

.team-widget-image {
    position: relative;
    margin-bottom: 15px;
}

.team-widget-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.team-widget-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-widget-item:hover .team-widget-social {
    opacity: 1;
}

.team-widget-social a {
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.team-widget-social a:hover {
    color: #0073aa;
}

.team-widget-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.team-widget-content .position {
    font-size: 12px;
    color: #666;
}

/* Services Widget */
.ptcms-services-widget .service-widget-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ptcms-services-widget .service-widget-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-widget-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #0073aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.service-widget-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.service-widget-content p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.service-widget-price {
    font-size: 14px;
    font-weight: bold;
    color: #0073aa;
}

/* Contact Info Widget */
.ptcms-contact-info-widget .contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.ptcms-contact-info-widget .contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item i {
    width: 20px;
    color: #0073aa;
    font-size: 16px;
}

.contact-info-item a {
    color: #333;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .counter-number {
        font-size: 36px;
    }
    
    .ptcms-portfolio-widget .portfolio-widget-item {
        flex-direction: column;
        text-align: center;
    }
    
    .portfolio-widget-image {
        width: 100%;
        height: 150px;
    }
    
    .ptcms-services-widget .service-widget-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-widget-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .portfolio-filter .filter-btn {
        display: block;
        margin: 5px 0;
    }
    
    .hero-content {
        padding: 20px 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .contact-form {
        padding: 20px;
    }
}
