/**
 * Tiliz Secure Links - Frontend Styles
 */

/* Basic Link */
.tiliz-link {
    color: #2271b1;
    text-decoration: underline;
}

.tiliz-link:hover {
    color: #135e96;
}

/* Buttons */
.tiliz-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.tiliz-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Button Styles */
.tiliz-button-primary {
    background: #2271b1;
    color: #fff;
}

.tiliz-button-primary:hover {
    background: #135e96;
    color: #fff;
}

.tiliz-button-secondary {
    background: #f6f7f7;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.tiliz-button-secondary:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.tiliz-button-outline {
    background: transparent;
    color: #2271b1;
    border: 2px solid #2271b1;
}

.tiliz-button-outline:hover {
    background: #2271b1;
    color: #fff;
}

/* Button Sizes */
.tiliz-button-small {
    padding: 6px 12px;
    font-size: 12px;
}

.tiliz-button-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.tiliz-button-medium {
    padding: 10px 20px;
    font-size: 14px;
}

.tiliz-button-large {
    padding: 14px 28px;
    font-size: 16px;
}

.tiliz-button-large .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Download Card */
.tiliz-download-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.tiliz-download-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #f0f6fc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tiliz-download-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2271b1;
}

.tiliz-download-info {
    flex: 1;
    min-width: 0;
}

.tiliz-download-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.tiliz-download-description {
    margin: 0 0 8px;
    color: #50575e;
    font-size: 14px;
}

.tiliz-download-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #787c82;
}

.tiliz-download-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tiliz-file-type {
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.tiliz-download-action {
    flex-shrink: 0;
}

/* Error Message */
.tiliz-error {
    color: #cc1818;
    font-style: italic;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .tiliz-download-card {
        flex-direction: column;
        text-align: center;
    }

    .tiliz-download-meta {
        justify-content: center;
    }
}
