/* Portfolio Builder Styles */

/* General Card Styles */
.pb-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.pb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Card Header */
.pb-card-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
}

.pb-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.pb-card-subtitle {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* Card Body */
.pb-card-body {
    margin-bottom: 16px;
}

.pb-card-body:last-child {
    margin-bottom: 0;
}

/* Card Footer */
.pb-card-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

/* Container Layouts */
.pb-education-container,
.pb-experience-container {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.pb-portfolio-container {
    display: grid;
    gap: 24px;
    margin: 24px 0;
    align-items: stretch;
}

.pb-portfolio-container.pb-columns-1 {
    grid-template-columns: 1fr;
}

.pb-portfolio-container.pb-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.pb-portfolio-container.pb-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pb-portfolio-container.pb-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Equal height portfolio cards */
.pb-portfolio-container .pb-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pb-portfolio-card .pb-card-body {
    flex-grow: 1;
}

.pb-portfolio-card .pb-card-footer {
    margin-top: auto;
}

/* Portfolio card description consistency */
.pb-portfolio-card .pb-description {
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-bottom: 12px;
}

.pb-contact-container,
.pb-skills-container,
.pb-resume-container {
    margin: 24px 0;
}

/* Education Card Specific */
.pb-education-card::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.pb-degree {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.pb-field {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.pb-date-range {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.pb-date-range::before {
    content: '📅';
    margin-right: 6px;
}

.pb-grade {
    font-size: 13px;
    color: #059669;
    font-weight: 600;
    background: #d1fae5;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

.pb-description {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

/* Experience Card Specific */
.pb-experience-card::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.pb-location {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.pb-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* Portfolio Card Specific */
.pb-portfolio-card::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.pb-card-image {
    margin: -24px -24px 16px -24px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.pb-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pb-portfolio-card:hover .pb-card-image img {
    transform: scale(1.05);
}

.pb-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.pb-tech-tag {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pb-project-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* Contact Card Specific */
.pb-contact-card::before {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.pb-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.pb-contact-item:last-child {
    margin-bottom: 0;
}

.pb-contact-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #6366f1;
}

.pb-contact-item a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pb-contact-item a:hover {
    color: #6366f1;
}

/* Skills Card Specific */
.pb-skills-card::before {
    background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%);
}

.pb-skills-grid {
    display: grid;
    gap: 16px;
}

.pb-skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pb-skill-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.pb-skill-level {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pb-skill-bar {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.pb-skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.pb-skill-percentage {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    min-width: 35px;
    text-align: right;
}

/* Resume Download */
.pb-resume-container {
    text-align: center;
    padding: 24px;
}

.pb-resume-download {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pb-resume-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.pb-resume-download .dashicons {
    margin-right: 8px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Buttons */
.pb-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.pb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pb-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.pb-btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
}

.pb-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #9ca3af;
    color: #374151;
}

.pb-btn-details {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.pb-btn-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: white;
}

.pb-btn-details::before {
    content: '📋';
    margin-right: 6px;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pb-portfolio-container {
        grid-template-columns: 1fr;
    }
    
    .pb-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .pb-card-title {
        font-size: 18px;
    }
    
    .pb-card-footer {
        flex-direction: column;
    }
    
    .pb-btn {
        text-align: center;
        width: 100%;
    }
    
    .pb-skill-level {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .pb-skill-percentage {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .pb-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .pb-card-title {
        font-size: 16px;
    }
    
    .pb-technologies {
        gap: 4px;
    }
    
    .pb-tech-tag {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .pb-contact-item {
        font-size: 13px;
    }
    
    .pb-resume-download {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Animation Classes */
.pb-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.pb-text-center {
    text-align: center;
}

.pb-text-left {
    text-align: left;
}

.pb-text-right {
    text-align: right;
}

.pb-mb-0 {
    margin-bottom: 0 !important;
}

.pb-mb-1 {
    margin-bottom: 8px !important;
}

.pb-mb-2 {
    margin-bottom: 16px !important;
}

.pb-mb-3 {
    margin-bottom: 24px !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .pb-card {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .pb-card-title {
        color: #f9fafb;
    }
    
    .pb-card-subtitle {
        color: #d1d5db;
    }
    
    .pb-card-header {
        border-color: #374151;
    }
    
    .pb-card-footer {
        border-color: #374151;
    }
    
    .pb-description {
        color: #d1d5db;
    }
    
    .pb-degree {
        color: #f3f4f6;
    }
    
    .pb-field {
        color: #d1d5db;
    }
    
    .pb-date-range {
        color: #9ca3af;
    }
    
    .pb-location {
        color: #d1d5db;
    }
    
    .pb-contact-item a {
        color: #f9fafb;
    }
    
    .pb-skill-name {
        color: #f3f4f6;
    }
    
    .pb-skill-bar {
        background: #374151;
    }
    
    .pb-btn-secondary {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
    
    .pb-btn-secondary:hover {
        background: #4b5563;
        color: #f9fafb;
    }
    
    .pb-btn-details {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
    }
    
    .pb-btn-details:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        color: white;
    }
} 