/**
 * DPDT Trademark Plugin - Main Frontend Styles
 * Version: 3.5.0
 */

/* ====== Base ====== */
.dpdt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dpdt-page-wrapper {
    padding: 40px 0;
    min-height: 60vh;
}

.dpdt-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.dpdt-page-header h1 {
    font-size: 2rem;
    color: #1a5276;
    margin: 0 0 10px;
    font-weight: 700;
}

.dpdt-page-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* ====== Buttons ====== */
.dpdt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
}

.dpdt-btn-primary {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: #fff;
}

.dpdt-btn-primary:hover {
    background: linear-gradient(135deg, #154360, #1a5276);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3);
}

.dpdt-btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.dpdt-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dpdt-spin 0.8s linear infinite;
}

@keyframes dpdt-spin {
    to { transform: rotate(360deg); }
}

/* ====== Services Grid ====== */
.dpdt-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.dpdt-service-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dpdt-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a5276, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dpdt-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dpdt-service-card:hover::before {
    transform: scaleX(1);
}

.dpdt-service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #ebf5fb, #d4e6f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpdt-service-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #1a5276;
}

.dpdt-service-title {
    font-size: 1.2rem;
    color: #1a5276;
    margin: 0 0 10px;
}

.dpdt-service-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px;
}

.dpdt-service-link {
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.dpdt-service-link:hover {
    color: #1a5276;
}

/* ====== Statistics ====== */
.dpdt-statistics-section {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    border-radius: 12px;
    padding: 50px 30px;
    margin: 30px 0;
}

.dpdt-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.dpdt-stat-item {
    color: #fff;
}

.dpdt-stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.dpdt-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ====== Category Page ====== */
.dpdt-category-icon {
    margin-bottom: 16px;
}

.dpdt-category-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.dpdt-child-pages {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8e8e8;
}

.dpdt-child-pages h2 {
    text-align: center;
    color: #1a5276;
    margin-bottom: 24px;
}

.dpdt-child-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.dpdt-child-card {
    display: block;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dpdt-child-card:hover {
    background: #ebf5fb;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.dpdt-child-card h3 {
    color: #1a5276;
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.dpdt-child-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* ====== Form Notice ====== */
.dpdt-form-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.dpdt-notice-info {
    background: #ebf5fb;
    border: 1px solid #aed6f1;
    color: #1a5276;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .dpdt-services-grid {
        grid-template-columns: 1fr;
    }

    .dpdt-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .dpdt-stat-number {
        font-size: 2rem;
    }

    .dpdt-page-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dpdt-stats-container {
        grid-template-columns: 1fr;
    }

    .dpdt-page-wrapper {
        padding: 20px 0;
    }
}
