/* Frontend Styles for Partner Links Widget */

.foxco-plw-widget {
    width: 100%;
    margin: 30px 0;
}

.foxco-plw-widget-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: inherit;
    text-align: left;
}

.foxco-plw-links-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Column Layouts */
.foxco-plw-links-grid.foxco-plw-columns-1 {
    grid-template-columns: 1fr;
}

.foxco-plw-links-grid.foxco-plw-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.foxco-plw-links-grid.foxco-plw-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.foxco-plw-links-grid.foxco-plw-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Link Cards */
.foxco-plw-link-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.foxco-plw-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.foxco-plw-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.foxco-plw-link-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    transition: color 0.2s ease;
}

.foxco-plw-link:hover .foxco-plw-link-title {
    color: #0073aa;
}

.foxco-plw-link-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .foxco-plw-links-grid.foxco-plw-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .foxco-plw-links-grid.foxco-plw-columns-3,
    .foxco-plw-links-grid.foxco-plw-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .foxco-plw-links-grid {
        gap: 15px;
    }
    
    .foxco-plw-link-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .foxco-plw-links-grid.foxco-plw-columns-2,
    .foxco-plw-links-grid.foxco-plw-columns-3,
    .foxco-plw-links-grid.foxco-plw-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .foxco-plw-widget-title {
        font-size: 1.3em;
    }
}

/* Alternative Styles */

/* Minimal Style */
.foxco-plw-widget.foxco-plw-style-minimal .foxco-plw-link-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: none;
    padding: 15px 0;
}

.foxco-plw-widget.foxco-plw-style-minimal .foxco-plw-link-card:hover {
    transform: none;
    box-shadow: none;
    border-bottom-color: #0073aa;
}

/* Bordered Style */
.foxco-plw-widget.foxco-plw-style-bordered .foxco-plw-link-card {
    border: 2px solid #0073aa;
    background: transparent;
}

.foxco-plw-widget.foxco-plw-style-bordered .foxco-plw-link-card:hover {
    background: #f7f7f7;
}

/* Shadow Style */
.foxco-plw-widget.foxco-plw-style-shadow .foxco-plw-link-card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.foxco-plw-widget.foxco-plw-style-shadow .foxco-plw-link-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Compact Style */
.foxco-plw-widget.foxco-plw-style-compact .foxco-plw-link-card {
    padding: 12px 15px;
}

.foxco-plw-widget.foxco-plw-style-compact .foxco-plw-link-title {
    font-size: 1em;
    margin-bottom: 5px;
}

.foxco-plw-widget.foxco-plw-style-compact .foxco-plw-link-description {
    font-size: 0.85em;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .foxco-plw-link-card {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .foxco-plw-link-title {
        color: #f0f0f0;
    }
    
    .foxco-plw-link-description {
        color: #b0b0b0;
    }
    
    .foxco-plw-link:hover .foxco-plw-link-title {
        color: #4a9eff;
    }
}

/* Accessibility */
.foxco-plw-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.foxco-plw-link:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .foxco-plw-link-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
